en-wordnet
Advanced tools
Comparing version 2.0.1 to 2.0.2
@@ -1,7 +0,8 @@ | ||
const packager = require('./package.json') | ||
const path = require('path') | ||
const enWordnet = { | ||
version: packager.wordnet.version, | ||
"3.0": path.join(__dirname, 'database', '3.0'), | ||
"3.1": path.join(__dirname, 'database', '3.1') | ||
} | ||
module.exports = enWordnet |
const enWordnet = require('./index') | ||
describe('Test if the package is usable', () => { | ||
test('Check version number', () => { | ||
expect(enWordnet.version).toBe("3.1") | ||
test('Check path for both version exists', () => { | ||
expect(enWordnet["3.0"]).toContain("en-wordnet/database/3.0") | ||
expect(enWordnet["3.1"]).toContain("en-wordnet/database/3.1") | ||
}) | ||
}) |
{ | ||
"name": "en-wordnet", | ||
"version": "2.0.1", | ||
"version": "2.0.2", | ||
"main": "index.js", | ||
@@ -5,0 +5,0 @@ "repository": "git@github.com:open-language/en-wordnet.git", |
70793222
27
149