fix(core): update
This commit is contained in:
14
test/test.ts
14
test/test.ts
@@ -22,4 +22,18 @@ tap.test('should check equality', async () => {
|
||||
smartexpect.expect('hithere').not.toEqual('hithere2');
|
||||
})
|
||||
|
||||
tap.test('should correctly state property presence', async () => {
|
||||
const testObject = {
|
||||
aprop: 'hello'
|
||||
};
|
||||
|
||||
smartexpect.expect(testObject).toHaveProperty('aprop');
|
||||
smartexpect.expect(testObject).not.toHaveProperty('aprop2');
|
||||
});
|
||||
|
||||
tap.test('should be greater than', async () => {
|
||||
smartexpect.expect(4).toBeGreaterThan(3);
|
||||
smartexpect.expect(4).toBeLessThan(5);
|
||||
})
|
||||
|
||||
tap.start();
|
||||
|
Reference in New Issue
Block a user