fix(core): update

This commit is contained in:
2022-07-24 12:45:29 +02:00
parent af12f068aa
commit 3e5121171a
10 changed files with 2935 additions and 18982 deletions

View File

@ -1,5 +1,5 @@
import { tap } from '@pushrocks/tapbundle';
import * as smartexpect from '../ts/index';
import * as smartexpect from '../ts/index.js';
tap.test('sync tests', async () => {
smartexpect.expect('hello').toBeTypeofString();
@ -20,11 +20,11 @@ tap.test('async tests', async (toolsArg) => {
tap.test('should check equality', async () => {
smartexpect.expect('hithere').toEqual('hithere');
smartexpect.expect('hithere').not.toEqual('hithere2');
})
});
tap.test('should correctly state property presence', async () => {
const testObject = {
aprop: 'hello'
aprop: 'hello',
};
smartexpect.expect(testObject).toHaveProperty('aprop');
@ -34,14 +34,14 @@ tap.test('should correctly state property presence', async () => {
tap.test('should be greater than', async () => {
smartexpect.expect(4).toBeGreaterThan(3);
smartexpect.expect(4).toBeLessThan(5);
})
});
tap.test('should correctly determine toContain', async () => {
const hello = {
socool: 'yes'
socool: 'yes',
};
const testArray = [hello];
smartexpect.expect(testArray).toContain(hello);
})
});
tap.start();