fix(core): update

This commit is contained in:
2022-02-02 02:45:45 +01:00
parent 3bd650dc2c
commit 9e92b8cff4
4 changed files with 327 additions and 114 deletions

View File

@@ -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();