Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
it('clears the log upon invocation', () => Bernie.attemptsTo(
Navigate.to(pageFromTemplate(`
<button id="trigger">Print to console</button>
`)),
Click.on(Trigger),
Ensure.that(Browser.log(), property('length', equals(1))),
Click.on(Trigger),
Ensure.that(Browser.log(), property('length', equals(1))),
));
});
it('removes the recorded items', function (this: WithStage) {
return this.stage.theActorCalled('Jasmine').attemptsTo(
Start.withAListContaining('Walk a dog'),
RemoveItem.called('Walk a dog'),
Ensure.that(RecordedItems(), property('length', equals(0))),
);
});