Comparing version 1.0.7 to 1.0.8
{ | ||
"name": "sozlukjs", | ||
"version": "1.0.7", | ||
"version": "1.0.8", | ||
"description": "An API library for Turkish Dictionary websites.", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
# Sözlük.JS | ||
![GitHub Workflow Status](https://img.shields.io/github/workflow/status/AtakanErmis/sozlukjs/CI) ![GitHub](https://img.shields.io/github/license/AtakanErmis/sozlukjs) ![npm](https://img.shields.io/npm/v/sozlukjs) ![David](https://img.shields.io/david/AtakanErmis/sozlukjs) ![npm bundle size](https://img.shields.io/bundlephobia/min/sozlukjs) ![npm bundle size](https://img.shields.io/bundlephobia/minzip/sozlukjs) | ||
An API library for Turkish Dictionary websites. | ||
@@ -4,0 +6,0 @@ |
const TDKDictionary = require("../src/modules/tdk"); | ||
test("gets meaning JSON data successfully", () => { | ||
expect(TDKDictionary.getMeaningData("sözlük")).resolves.toBeInstanceOf(Object); | ||
}) | ||
TDKDictionary.getMeaningData("sözlük").then(data => { | ||
expect(data).toBeInstanceOf(Object); | ||
}); | ||
}); | ||
test("gets spelling JSON data successfully", () => { | ||
expect(TDKDictionary.getSpellingData("sözlük")).resolves.toBeInstanceOf(Object); | ||
}) | ||
TDKDictionary.getSpellingData("sözlük").then(data => { | ||
expect(data).toBeInstanceOf(Object); | ||
}); | ||
}); | ||
test("gets audio JSON data successfully", () => { | ||
expect(TDKDictionary.getAudioUrl("sözlük")).resolves.toBeInstanceOf(Object); | ||
}) | ||
TDKDictionary.getAudioUrl("sözlük").then(data => { | ||
expect(data).toBeInstanceOf(Object); | ||
}); | ||
}); |
const TurengDictionary = require("../src/modules/tureng"); | ||
test("gets term JSON data successfully", () => { | ||
expect(TurengDictionary.getTermData("dictionary")).resolves.toBeInstanceOf(Object); | ||
TurengDictionary.getTermData("dictionary").then(data => { | ||
expect(data).toBeInstanceOf(Object); | ||
}); | ||
}) | ||
test("gets suggestion JSON data successfully", async () => { | ||
expect(TurengDictionary.getTermSuggestions("dictionary")).resolves.toBeInstanceOf(Object); | ||
TurengDictionary.getTermSuggestions("dictionary").then(data => { | ||
expect(data).toBeInstanceOf(Object); | ||
}); | ||
}) |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
12420
206
57