9 lines
367 B
JavaScript
9 lines
367 B
JavaScript
import * as smartexpect from './dist_ts/index.js';
|
|
console.log('script start');
|
|
const obj = { topLevel: 'hello' };
|
|
console.log('script: test alias toHaveProperty');
|
|
const ret = smartexpect.expect(obj).toHaveProperty('topLevel');
|
|
console.log('got ret:', ret, 'typeof', typeof ret);
|
|
console.log('ret.then?', ret && typeof (ret as any).then);
|
|
console.log('script end');
|