mirror of
https://github.com/keymanapp/keyman.git
synced 2026-08-05 00:15:32 +00:00
Enable testing with Chai's assert.
This commit is contained in:
parent
4ae5ae9b86
commit
b2c24e08bd
2 changed files with 3 additions and 3 deletions
|
|
@ -6,7 +6,7 @@
|
|||
"types": "dist/index.d.ts",
|
||||
"scripts": {
|
||||
"build": "npx tsc -p .",
|
||||
"test": "echo \"Error: no test specified\" && exit 1"
|
||||
"test": "mocha -r ts-node/register tests/**/test-*.ts"
|
||||
},
|
||||
"author": "Marc Durdin (SIL)",
|
||||
"license": "MIT",
|
||||
|
|
|
|||
|
|
@ -1,11 +1,11 @@
|
|||
import LexicalModelCompiler from '../';
|
||||
import {expect} from 'chai';
|
||||
import {assert} from 'chai';
|
||||
import 'mocha';
|
||||
|
||||
describe('LexicalModelCompiler', function () {
|
||||
describe('#hello()', function () {
|
||||
it('should say "hello"', function () {
|
||||
expect((new LexicalModelCompiler).hello()).to.be('Hello, world!');
|
||||
assert.strictEqual((new LexicalModelCompiler).hello(), 'Hello, world!');
|
||||
});
|
||||
});
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue