Created
February 20, 2022 05:07
-
-
Save mhassanist/379ec0ca9a7c2e2cf9b7ec3646f94234 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//take an instance of the contract | |
let x: number; | |
//make sure the instance is properly created | |
beforeEach(() => { | |
x = 0; | |
}); | |
describe("add to x", () => { | |
it("add to x", () => { | |
x++; | |
expect(x).toBe(1); | |
x++; | |
expect(x).toBe(2); | |
}); | |
it("should be 2", () => { | |
expect(x).toBe(2); | |
}); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment