Skip to content

Commit 7d9ce17

Browse files
author
Edward King
committed
Studio complete
1 parent eadee39 commit 7d9ce17

File tree

2 files changed

+16
-1
lines changed

2 files changed

+16
-1
lines changed

unit-testing/studio/index.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11

22
let launchcode = {
3+
organization : "nonprofit",
4+
executiveDirector : "Jeff",
5+
percentageCoolEmployees : 100
36

47
}
58

unit-testing/studio/tests/launchcode.test.js

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,17 @@ const launchcode = require('../index.js');
44
describe("Testing launchcode", function(){
55

66
// Write your unit tests here!
7-
7+
test("checking organization, should be nonprofit",function () {
8+
expect(launchcode.organization).toEqual("nonprofit")
9+
})
10+
test("checking executiveDirector, should be Jeff",function () {
11+
expect(launchcode.executiveDirector).toEqual("Jeff")
12+
})
13+
test("checking cool employess, should be 100",function () {
14+
expect(launchcode.percentageCoolEmployees).toEqual(100)
15+
})
16+
17+
test("checking programs offered, should be Web Development, Data Analysis, Liftoff",function () {
18+
expect(launchcode.programsOffered).toEqual(["Web Development", "Data Analysis", "Liftoff"])
19+
})
820
});

0 commit comments

Comments
 (0)