minor fixes
This commit is contained in:
parent
5a024624af
commit
d20a6e3d5e
33 changed files with 357 additions and 395 deletions
|
@ -0,0 +1,7 @@
|
|||
let user, admin;
|
||||
|
||||
user = "John";
|
||||
|
||||
admin = user;
|
||||
|
||||
alert(admin);
|
|
@ -0,0 +1 @@
|
|||
Show the value of `admin` using `alert` (will show "John").
|
|
@ -0,0 +1,14 @@
|
|||
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");
|
||||
});
|
||||
});
|
Loading…
Add table
Add a link
Reference in a new issue