fix(core): update
This commit is contained in:
@ -22,6 +22,13 @@ tap.test('should produce a valid screenshot', async tools => {
|
||||
expect(result.buffer).to.be.instanceOf(Buffer);
|
||||
});
|
||||
|
||||
tap.test('should evalute something in the browser', async () => {
|
||||
const result = await testSmartBrowser.evaluateOnPage('https://lossless.com', async () => {
|
||||
return 'hi';
|
||||
});
|
||||
console.log(result);
|
||||
});
|
||||
|
||||
tap.test('should stop the browser ', async () => {
|
||||
await expect(testSmartBrowser.stop()).to.eventually.be.fulfilled;
|
||||
});
|
||||
|
Reference in New Issue
Block a user