From ff4713fbfd46f56e549a36456158fbe4751dbe40 Mon Sep 17 00:00:00 2001 From: flakey5 <73616808+flakey5@users.noreply.github.com> Date: Sat, 17 Sep 2022 17:33:59 -0700 Subject: [PATCH] Update test/parallel/test-domexception-cause.js Co-authored-by: James M Snell --- test/parallel/test-domexception-cause.js | 34 ++++++++++++------------ 1 file changed, 17 insertions(+), 17 deletions(-) diff --git a/test/parallel/test-domexception-cause.js b/test/parallel/test-domexception-cause.js index 122636fe33e6b5..179ef6d212ae13 100644 --- a/test/parallel/test-domexception-cause.js +++ b/test/parallel/test-domexception-cause.js @@ -4,30 +4,30 @@ require('../common'); const { strictEqual, deepStrictEqual } = require('assert'); { - const domException = new DOMException('no cause', 'abc'); - strictEqual(domException.name, 'abc'); - strictEqual('cause' in domException, false); - strictEqual(domException.cause, undefined); + const domException = new DOMException('no cause', 'abc'); + strictEqual(domException.name, 'abc'); + strictEqual('cause' in domException, false); + strictEqual(domException.cause, undefined); } { - const domException = new DOMException('with undefined cause', { name: 'abc', cause: undefined }); - strictEqual(domException.name, 'abc'); - strictEqual('cause' in domException, true); - strictEqual(domException.cause, undefined); + const domException = new DOMException('with undefined cause', { name: 'abc', cause: undefined }); + strictEqual(domException.name, 'abc'); + strictEqual('cause' in domException, true); + strictEqual(domException.cause, undefined); } { - const domException = new DOMException('with string cause', { name: 'abc', cause: 'foo' }); - strictEqual(domException.name, 'abc'); - strictEqual('cause' in domException, true); - strictEqual(domException.cause, 'foo'); + const domException = new DOMException('with string cause', { name: 'abc', cause: 'foo' }); + strictEqual(domException.name, 'abc'); + strictEqual('cause' in domException, true); + strictEqual(domException.cause, 'foo'); } { - const object = { reason: 'foo' }; - const domException = new DOMException('with object cause', { name: 'abc', cause: object }); - strictEqual(domException.name, 'abc'); - strictEqual('cause' in domException, true); - deepStrictEqual(domException.cause, object); + const object = { reason: 'foo' }; + const domException = new DOMException('with object cause', { name: 'abc', cause: object }); + strictEqual(domException.name, 'abc'); + strictEqual('cause' in domException, true); + deepStrictEqual(domException.cause, object); }