feat: aggiunge CLI unificata, build vocabolario e filtro lessicale
This commit is contained in:
21
package/test/test.js
Normal file
21
package/test/test.js
Normal file
@@ -0,0 +1,21 @@
|
||||
/**
|
||||
* @license
|
||||
* Copyright 2019 Ludan Stoecklé
|
||||
* SPDX-License-Identifier: Apache-2.0
|
||||
*/
|
||||
|
||||
const assert = require('assert');
|
||||
const italianWords = require('../dist/words.json');
|
||||
|
||||
describe('italian-words-dict', function () {
|
||||
it('should contain something', function () {
|
||||
assert(italianWords != null);
|
||||
assert(Object.keys(italianWords).length > 100);
|
||||
});
|
||||
it('pizza should be ok', function () {
|
||||
const pizza = italianWords['pizza'];
|
||||
assert(pizza != null);
|
||||
assert.strictEqual(pizza['G'], 'F');
|
||||
assert.strictEqual(pizza['P'], 'pizze');
|
||||
});
|
||||
});
|
||||
Reference in New Issue
Block a user