const Arithmetic = require("../arithmetic"); //tests arithmetic class describe("Arithmetic", () => { //organizational tool containing tests describe("Initialization", () => { it("should set 'number' when created", () => { // Arrange const num = 108; // Act const obj = new Arithmetic(num); // Assert expect(obj.number).toEqual(num); }); }) })
Preview:
downloadDownload PNG
downloadDownload JPEG
downloadDownload SVG
Tip: You can change the style, width & colours of the snippet with the inspect tool before clicking Download!
Click to optimize width for Twitter