-
-
Notifications
You must be signed in to change notification settings - Fork 6.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
5109514
commit a13c80e
Showing
3 changed files
with
128 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
45 changes: 45 additions & 0 deletions
45
integration_tests/failures/__tests__/node-assertion-error-test.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
/** | ||
* Copyright (c) 2014-present, Facebook, Inc. All rights reserved. | ||
* | ||
* This source code is licensed under the BSD-style license found in the | ||
* LICENSE file in the root directory of this source tree. An additional grant | ||
* of patent rights can be found in the PATENTS file in the same directory. | ||
* | ||
* @emails oncall+jsinfra | ||
*/ | ||
|
||
'use strict'; | ||
|
||
const assert = require('assert'); | ||
|
||
test('assert', () => { | ||
assert(false); | ||
}); | ||
|
||
test('assert with a message', () => { | ||
assert(false, 'this is a message'); | ||
}); | ||
|
||
test('assert.ok', () => { | ||
assert.ok(false); | ||
}); | ||
|
||
test('assert.ok with a message', () => { | ||
assert.ok(false, 'this is a message'); | ||
}); | ||
|
||
test('assert.equal', () => { | ||
assert.equal(1, 2); | ||
}); | ||
|
||
test('assert.equal with a message', () => { | ||
assert.equal(1, 2, 'this is a message'); | ||
}); | ||
|
||
test('assert.deepEqual', () => { | ||
assert.deepEqual({a: {b: {c: 5}}}, {a: {b: {c: 6}}}); | ||
}); | ||
|
||
test('assert.deepEqual with a message', () => { | ||
assert.deepEqual({a: {b: {c: 5}}}, {a: {b: {c: 7}}}, 'this is a message'); | ||
}); |