-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtest24.js
More file actions
23 lines (19 loc) · 681 Bytes
/
test24.js
File metadata and controls
23 lines (19 loc) · 681 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
var assert = require("assert");
var assesment = require("./24end_script");
describe("it should test if a string end with 'Script'", function() {
it("it should return true1", function() {
assert.deepEqual(assesment('JavaScript'), true);
});
it("it should return false", function() {
assert.deepEqual(assesment('Java Scripts'), false);
});
it("it should return true2", function() {
assert.deepEqual(assesment('Java Script'), true);
});
it("it should return false", function() {
assert.deepEqual(assesment('JavaScripts'), false);
});
it("it should return false", function() {
assert.deepEqual(assesment('JavaScript script'), false);
});
});