Enable testing with Chai's assert.

This commit is contained in:
Eddie Antonio Santos 2019-07-04 09:16:57 -06:00
parent 4ae5ae9b86
commit b2c24e08bd
No known key found for this signature in database
GPG key ID: DD411EA4D9509D87
2 changed files with 3 additions and 3 deletions

View file

@ -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",

View file

@ -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!');
});
});
});