-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathtest.js
More file actions
60 lines (46 loc) · 1.87 KB
/
Copy pathtest.js
File metadata and controls
60 lines (46 loc) · 1.87 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
// ---------------------------------------------------------------------------
// assert.js
// ---------------------------------------------------------------------------
var EMPTY_STRING = require('./index.js');
var assert = require('assert');
describe('empty-string', function() {
it('should be an empty string', function () {
assert.equal(EMPTY_STRING, '');
});
it('should be a really empty string', function () {
assert.equal(EMPTY_STRING.length, 0);
});
it('should not be an empty object', function () {
assert.equal(EMPTY_STRING === {}, false);
});
it('should not be an empty array', function () {
assert.equal(EMPTY_STRING === [], false);
});
it('should not be a string with content', function () {
assert.equal(EMPTY_STRING === 'content', false);
});
it('should not be the number 1', function () {
assert.equal(EMPTY_STRING === 1, false);
});
it('should not be the number 0', function () {
assert.equal(EMPTY_STRING === 0, false);
});
it('should not be the number 10000 either', function () {
assert.equal(EMPTY_STRING === 10000, false);
});
it('should not be the number 9001 either', function () {
assert.equal(EMPTY_STRING === 9001, false);
});
it('should not be undefined', function () {
assert.equal(EMPTY_STRING === undefined, false);
});
it('should not be false', function () {
assert.equal(EMPTY_STRING === false, false);
});
it('should not be true', function () {
assert.equal(EMPTY_STRING === true, false);
});
it('should be itself', function () {
assert.equal(EMPTY_STRING, EMPTY_STRING);
});
});