en.javascript.info/1-js/01-getting-started/04-variables/1-hello-variables/4/test.js
2021-06-09 07:07:18 +03:00

14 lines
No EOL
300 B
JavaScript

let nativeAlert = globalThis.alert;
globalThis.alert = jasmine.createSpy();
describe("Test", function() {
after(function() {
globalThis.alert = this.alert;
});
it(`user and admin equal "John"`, function() {
expect(user).toEqual("John");
expect(admin).toEqual("John");
});
});