11 lines
279 B
JavaScript
11 lines
279 B
JavaScript
|
import * as smartexpect from './dist_ts/index.js';
|
||
|
console.log('start');
|
||
|
const obj = { topLevel: 'hello' };
|
||
|
try {
|
||
|
smartexpect.expect(obj).toHaveProperty('topLevel');
|
||
|
console.log('success');
|
||
|
} catch (e) {
|
||
|
console.log('caught in catch:', e, e.message);
|
||
|
}
|
||
|
console.log('end');
|