summaryrefslogtreecommitdiff
path: root/doc/api/assert.md
diff options
context:
space:
mode:
authorVse Mozhet Byt <vsemozhetbyt@gmail.com>2017-04-21 17:38:31 +0300
committerVse Mozhet Byt <vsemozhetbyt@gmail.com>2017-04-25 00:06:00 +0300
commite2c3e4727d5899a709f5c421e128a4af2ef626f3 (patch)
treeda562d9848f3b66dddd2f244972a5cbc672fda20 /doc/api/assert.md
parentb6d293d2158c66a3edbb86c0c43b4c51af3484f7 (diff)
downloadnode-new-e2c3e4727d5899a709f5c421e128a4af2ef626f3.tar.gz
doc: conform to rules for eslint-plugin-markdown
PR-URL: https://github.com/nodejs/node/pull/12563 Refs: https://github.com/nodejs/node/pull/12557#issuecomment-296015032 Reviewed-By: Teddy Katz <teddy.katz@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Timothy Gu <timothygu99@gmail.com> Reviewed-By: Gibson Fahnestock <gibfahn@gmail.com> Reviewed-By: Yuta Hiroto <hello@about-hiroppy.com>
Diffstat (limited to 'doc/api/assert.md')
-rw-r--r--doc/api/assert.md30
1 files changed, 15 insertions, 15 deletions
diff --git a/doc/api/assert.md b/doc/api/assert.md
index 55dd99ec23..2ab93c8de0 100644
--- a/doc/api/assert.md
+++ b/doc/api/assert.md
@@ -63,18 +63,18 @@ are evaluated also:
const assert = require('assert');
const obj1 = {
- a : {
- b : 1
+ a: {
+ b: 1
}
};
const obj2 = {
- a : {
- b : 2
+ a: {
+ b: 2
}
};
const obj3 = {
- a : {
- b : 1
+ a: {
+ b: 1
}
};
const obj4 = Object.create(obj1);
@@ -322,18 +322,18 @@ Tests for any deep inequality. Opposite of [`assert.deepEqual()`][].
const assert = require('assert');
const obj1 = {
- a : {
- b : 1
+ a: {
+ b: 1
}
};
const obj2 = {
- a : {
- b : 2
+ a: {
+ b: 2
}
};
const obj3 = {
- a : {
- b : 1
+ a: {
+ b: 1
}
};
const obj4 = Object.create(obj1);
@@ -368,10 +368,10 @@ Tests for deep strict inequality. Opposite of [`assert.deepStrictEqual()`][].
```js
const assert = require('assert');
-assert.notDeepEqual({a:1}, {a:'1'});
+assert.notDeepEqual({a: 1}, {a: '1'});
// AssertionError: { a: 1 } notDeepEqual { a: '1' }
-assert.notDeepStrictEqual({a:1}, {a:'1'});
+assert.notDeepStrictEqual({a: 1}, {a: '1'});
// OK
```
@@ -542,7 +542,7 @@ assert.throws(
throw new Error('Wrong value');
},
function(err) {
- if ( (err instanceof Error) && /value/.test(err) ) {
+ if ((err instanceof Error) && /value/.test(err)) {
return true;
}
},