8000 second commit · agjs/javascript-repl@ce8fb9e · GitHub
[go: up one dir, main page]

Skip to content

Commit ce8fb9e

Browse files
Aleksandar GrbicAleksandar Grbic
Aleksandar Grbic
authored and
Aleksandar Grbic
committed
second commit
1 parent b0ac10e commit ce8fb9e

File tree

1 file changed

+9
-5
lines changed

1 file changed

+9
-5
lines changed

app.js

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,16 @@ const expect = chai.expect;
33

44
describe('Object', function () {
55

6-
it('should consider positive and negative values to be different', function(done){
6+
it('should consider Object.is() to return false on positive and negative zero', function (done) {
77

8-
expect(-0).to.equal(0);
9-
expect(Object.is(0, -0)).to.equal(false);
8+
expect(Object.is(0, -0)).to.equal(false);
9+
done();
10+
});
1011

11-
done();
12-
});
12+
it('should consider tripple assignment operator to return true on positive and negative zero', function (done) {
13+
14+
expect(-0 === 0).to.equal(true);
15+
done();
16+
});
1317

1418
});

0 commit comments

Comments
 (0)
0