Home
last modified time | relevance | path

Searched refs:deepEqual (Results 1 – 25 of 228) sorted by relevance

12345678910

/third_party/node/deps/npm/node_modules/qs/test/
Dparse.js11 st.deepEqual(qs.parse('0=foo'), { 0: 'foo' });
12 st.deepEqual(qs.parse('foo=c++'), { foo: 'c ' });
13 st.deepEqual(qs.parse('a[>=]=23'), { a: { '>=': '23' } });
14 st.deepEqual(qs.parse('a[<=>]==23'), { a: { '<=>': '=23' } });
15 st.deepEqual(qs.parse('a[==]=23'), { a: { '==': '23' } });
16 st.deepEqual(qs.parse('foo', { strictNullHandling: true }), { foo: null });
17 st.deepEqual(qs.parse('foo'), { foo: '' });
18 st.deepEqual(qs.parse('foo='), { foo: '' });
19 st.deepEqual(qs.parse('foo=bar'), { foo: 'bar' });
20 st.deepEqual(qs.parse(' foo = bar = baz '), { ' foo ': ' bar = baz ' });
[all …]
Dutils.js7 …t.deepEqual(utils.merge({ a: 'b' }, { a: 'c' }), { a: ['b', 'c'] }, 'merges two objects with the s…
10 …t.deepEqual(oneMerged, { foo: ['bar', { first: '123' }] }, 'merges a standalone and an object into…
13 …t.deepEqual(twoMerged, { foo: { 0: 'bar', 1: { first: '123' }, second: '456' } }, 'merges a standa…
16 …t.deepEqual(sandwiched, { foo: ['bar', { first: '123', second: '456' }, 'baz'] }, 'merges an objec…
19 t.deepEqual(nestedArrays, { foo: ['baz', 'bar', 'xyzzy'] });
30 t.deepEqual(target, { a: 1, b: 3, c: 4 }, 'target and source are merged');
31 t.deepEqual(source, { b: 3, c: 4 }, 'source is untouched');
/third_party/node/deps/npm/node_modules/validate-npm-package-name/test/
Dindex.js9 t.deepEqual(validate('some-package'), {validForNewPackages: true, validForOldPackages: true})
10 t.deepEqual(validate('example.com'), {validForNewPackages: true, validForOldPackages: true})
11 t.deepEqual(validate('under_score'), {validForNewPackages: true, validForOldPackages: true})
12 t.deepEqual(validate('period.js'), {validForNewPackages: true, validForOldPackages: true})
13 t.deepEqual(validate('123numeric'), {validForNewPackages: true, validForOldPackages: true})
14 t.deepEqual(validate('crazy!'), {
22 t.deepEqual(validate('@npm/thingy'), {validForNewPackages: true, validForOldPackages: true})
23 t.deepEqual(validate('@npm-zors/money!time.js'), {
31 t.deepEqual(validate(''), {
36 t.deepEqual(validate(''), {
[all …]
/third_party/node/deps/npm/node_modules/mkdirp/node_modules/minimist/test/
Dnum.js13 t.deepEqual(argv, {
21 t.deepEqual(typeof argv.x, 'number');
22 t.deepEqual(typeof argv.y, 'number');
23 t.deepEqual(typeof argv.z, 'number');
24 t.deepEqual(typeof argv.w, 'string');
25 t.deepEqual(typeof argv.hex, 'number');
26 t.deepEqual(typeof argv._[0], 'number');
32 t.deepEqual(argv, { x : 1234, _ : [ 789 ] });
33 t.deepEqual(typeof argv.x, 'number');
34 t.deepEqual(typeof argv._[0], 'number');
Ddash.js6 t.deepEqual(parse([ '-n', '-' ]), { n: '-', _: [] });
7 t.deepEqual(parse([ '-' ]), { _: [ '-' ] });
8 t.deepEqual(parse([ '-f-' ]), { f: '-', _: [] });
9 t.deepEqual(
13 t.deepEqual(
21 t.deepEqual(parse([ '-a', '--', 'b' ]), { a: true, _: [ 'b' ] });
22 t.deepEqual(parse([ '--a', '--', 'b' ]), { a: true, _: [ 'b' ] });
23 t.deepEqual(parse([ '--a', '--', 'b' ]), { a: true, _: [ 'b' ] });
28 t.deepEqual(
Dshort.js6 t.deepEqual(parse([ '-n123' ]), { n: 123, _: [] });
7 t.deepEqual(
14 t.deepEqual(
19 t.deepEqual(
24 t.deepEqual(
29 t.deepEqual(
34 t.deepEqual(
39 t.deepEqual(
59 t.deepEqual(
/third_party/node/deps/npm/node_modules/minimist/test/
Dnum.js13 t.deepEqual(argv, {
21 t.deepEqual(typeof argv.x, 'number');
22 t.deepEqual(typeof argv.y, 'number');
23 t.deepEqual(typeof argv.z, 'number');
24 t.deepEqual(typeof argv.w, 'string');
25 t.deepEqual(typeof argv.hex, 'number');
26 t.deepEqual(typeof argv._[0], 'number');
32 t.deepEqual(argv, { x : 1234, _ : [ 789 ] });
33 t.deepEqual(typeof argv.x, 'number');
34 t.deepEqual(typeof argv._[0], 'number');
Ddash.js6 t.deepEqual(parse([ '-n', '-' ]), { n: '-', _: [] });
7 t.deepEqual(parse([ '-' ]), { _: [ '-' ] });
8 t.deepEqual(parse([ '-f-' ]), { f: '-', _: [] });
9 t.deepEqual(
13 t.deepEqual(
21 t.deepEqual(parse([ '-a', '--', 'b' ]), { a: true, _: [ 'b' ] });
22 t.deepEqual(parse([ '--a', '--', 'b' ]), { a: true, _: [ 'b' ] });
23 t.deepEqual(parse([ '--a', '--', 'b' ]), { a: true, _: [ 'b' ] });
28 t.deepEqual(
Dshort.js6 t.deepEqual(parse([ '-n123' ]), { n: 123, _: [] });
7 t.deepEqual(
14 t.deepEqual(
19 t.deepEqual(
24 t.deepEqual(
29 t.deepEqual(
34 t.deepEqual(
39 t.deepEqual(
59 t.deepEqual(
/third_party/node/deps/npm/node_modules/define-properties/test/
Dindex.js36 t.deepEqual(keys(obj), ['a', 'b', 'c'], 'all literal-set keys start enumerable');
42 t.deepEqual(obj, {
47 …t.deepEqual(Object.getOwnPropertyDescriptor(obj, 'd'), getDescriptor(5), 'new property "d" was add…
48 t.deepEqual(['a', 'b', 'c'], keys(obj), 'new keys are not enumerable');
58 t.deepEqual(obj, {
62 …t.deepEqual(Object.getOwnPropertyDescriptor(obj, 'd'), getDescriptor(5), 'existing property "d" re…
63 …t.deepEqual(Object.getOwnPropertyDescriptor(obj, 'a'), getDescriptor(2), 'existing property "a" wa…
64 t.deepEqual(['b', 'c'], keys(obj), 'overridden keys are not enumerable');
80 t.deepEqual(obj, {
95 t.deepEqual(obj, {
[all …]
/third_party/node/deps/npm/test/tap/
Dutils.funding.js7 t.deepEqual(
20 t.deepEqual(
39 t.deepEqual(
61 t.deepEqual(
81 t.deepEqual(
112 t.deepEqual(
130 t.deepEqual(
157 t.deepEqual(
259 t.deepEqual(
329 t.deepEqual(
[all …]
/third_party/typescript/src/testRunner/unittests/
Dpaths.ts190 assert.deepEqual(ts.getPathComponents(""), [""]);
191 assert.deepEqual(ts.getPathComponents("a"), ["", "a"]);
192 assert.deepEqual(ts.getPathComponents("./a"), ["", ".", "a"]);
193 assert.deepEqual(ts.getPathComponents("/"), ["/"]);
194 assert.deepEqual(ts.getPathComponents("/a"), ["/", "a"]);
195 assert.deepEqual(ts.getPathComponents("/a/"), ["/", "a"]);
196 assert.deepEqual(ts.getPathComponents("c:"), ["c:"]);
197 assert.deepEqual(ts.getPathComponents("c:d"), ["", "c:d"]);
198 assert.deepEqual(ts.getPathComponents("c:/"), ["c:/"]);
199 assert.deepEqual(ts.getPathComponents("c:/path"), ["c:/", "path"]);
[all …]
DcreateSetShim.ts245 assert.deepEqual(actual, []);
253 assert.deepEqual(arrayFrom(set.keys()), ["c"]);
254 assert.deepEqual(arrayFrom(set.values()), ["c"]);
255 assert.deepEqual(arrayFrom(set.entries()), [["c", "c"]]);
263 assert.deepEqual(arrayFrom(set.keys()), ["a"]);
264 assert.deepEqual(arrayFrom(set.values()), ["a"]);
265 assert.deepEqual(arrayFrom(set.entries()), [["a", "a"]]);
274 assert.deepEqual(arrayFrom(set.keys()), ["a", "e"]);
275 assert.deepEqual(arrayFrom(set.values()), ["a", "e"]);
276 assert.deepEqual(arrayFrom(set.entries()), [["a", "a"], ["e", "e"]]);
[all …]
DcreateMapShim.ts262 assert.deepEqual(actual, []);
270 assert.deepEqual(arrayFrom(map.keys()), ["c"]);
271 assert.deepEqual(arrayFrom(map.values()), ["d"]);
272 assert.deepEqual(arrayFrom(map.entries()), [["c", "d"]]);
280 assert.deepEqual(arrayFrom(map.keys()), ["a"]);
281 assert.deepEqual(arrayFrom(map.values()), ["b"]);
282 assert.deepEqual(arrayFrom(map.entries()), [["a", "b"]]);
291 assert.deepEqual(arrayFrom(map.keys()), ["a", "e"]);
292 assert.deepEqual(arrayFrom(map.values()), ["b", "f"]);
293 assert.deepEqual(arrayFrom(map.entries()), [["a", "b"], ["e", "f"]]);
[all …]
/third_party/node/deps/npm/node_modules/registry-auth-token/test/
Dauth-token.test.js49 assert.deepEqual(getAuthToken(), {token: 'foobar', type: 'Basic'})
66 assert.deepEqual(getAuthToken(), {token: 'foobar', type: 'Basic'})
84 assert.deepEqual(getAuthToken(), {token: 'foobar', type: 'Basic'})
101 assert.deepEqual(getAuthToken(), {token: 'foobar', type: 'Bearer'})
119 assert.deepEqual(getAuthToken({npmrc: npmrc}), {token: 'qar', type: 'Bearer'})
135 assert.deepEqual(getAuthToken(), {token: 'beepboop', type: 'Bearer'})
151 assert.deepEqual(getAuthToken(), {token: 'foobar', type: 'Bearer'})
168 assert.deepEqual(getAuthToken(), {token: 'foobar', type: 'Bearer'})
183 assert.deepEqual(getAuthToken(), {token: 'barbaz', type: 'Bearer'})
198 assert.deepEqual(getAuthToken('//registry.blah.foo'), {token: 'whatev', type: 'Bearer'})
[all …]
/third_party/node/deps/npm/test/need-npm5-update/need-only-update-save-optional/
Dupdate-save.js64 t.deepEqual(
69 t.deepEqual(
74 t.deepEqual(
92 t.deepEqual(
97 t.deepEqual(
102 t.deepEqual(
120 t.deepEqual(
125 t.deepEqual(
130 t.deepEqual(
148 t.deepEqual(
[all …]
/third_party/node/deps/npm/node_modules/libnpmaccess/test/
Dindex.js20 t.deepEqual(ret, true, 'request succeeded')
29 t.deepEqual(ret, true, 'request succeeded')
38 t.deepEqual(ret, true, 'request succeeded')
47 t.deepEqual(ret, true, 'request succeeded')
59 t.deepEqual(ret, true, 'request succeeded')
71 t.deepEqual(ret, true, 'request succeeded')
111 t.deepEqual(ret, true, 'request succeeded')
120 t.deepEqual(ret, true, 'request succeeded')
129 t.deepEqual(ret, true, 'request succeeded')
148 t.deepEqual(data, clientPackages, 'got client package info')
[all …]
/third_party/node/deps/npm/node_modules/prr/
Dtest.js10 t.deepEqual(
30 t.deepEqual(
48 t.deepEqual(o, { foo: 'bar' }, 'properties are not enumerable')
51 t.deepEqual(o.obj, { o: 'o' }, 'correctly set property')
54 t.deepEqual(
77 t.deepEqual(
94 t.deepEqual(
111 t.deepEqual(
131 t.deepEqual(
144 t.deepEqual(
[all …]
/third_party/node/deps/npm/node_modules/encoding/test/
Dtest.js16 test.deepEqual(encoding.convert(input, 'latin1'), expected);
23 test.deepEqual(encoding.convert(input, 'utf-8', 'latin1').toString(), expected);
30 test.deepEqual(encoding.convert(input, 'utf-8', 'utf-8'), expected);
37 test.deepEqual(encoding.convert(input, 'latin_15', 'latin13'), expected);
44 test.deepEqual(encoding.convert(input, 'utf-8', 'ISO-2022-JP'), expected);
51 test.deepEqual(encoding.convert(input, 'latin1', false, true), expected);
58 test.deepEqual(encoding.convert(input, 'utf-8', 'latin1', true).toString(), expected);
65 test.deepEqual(encoding.convert(input, 'utf-8', 'utf-8', true), expected);
72 test.deepEqual(encoding.convert(input, 'latin_15', 'latin13', true), expected);
/third_party/node/deps/npm/node_modules/util-extend/
Dtest.js3 assert.deepEqual(extend({a:1}), {a:1});
4 assert.deepEqual(extend({a:1}, []), {a:1});
5 assert.deepEqual(extend({a:1}, null), {a:1});
6 assert.deepEqual(extend({a:1}, true), {a:1});
7 assert.deepEqual(extend({a:1}, false), {a:1});
8 assert.deepEqual(extend({a:1}, {b:2}), {a:1, b:2});
9 assert.deepEqual(extend({a:1, b:2}, {b:3}), {a:1, b:3});
/third_party/node/deps/npm/node_modules/validate-npm-package-license/
DREADME.md21 assert.deepEqual(valid('MIT'), validSPDXExpression);
22 assert.deepEqual(valid('BSD-2-Clause'), validSPDXExpression);
23 assert.deepEqual(valid('Apache-2.0'), validSPDXExpression);
24 assert.deepEqual(valid('ISC'), validSPDXExpression);
29 assert.deepEqual(
49 assert.deepEqual(
70 assert.deepEqual(
75 assert.deepEqual(
84 assert.deepEqual(
93 assert.deepEqual(
[all …]
/third_party/node/deps/npm/node_modules/node-gyp/test/
Dtest-process-release.js14 t.deepEqual(release, {
35 t.deepEqual(release, {
57 t.deepEqual(release, {
79 t.deepEqual(release, {
101 t.deepEqual(release, {
123 t.deepEqual(release, {
147 t.deepEqual(release, {
171 t.deepEqual(release, {
197 t.deepEqual(release, {
223 t.deepEqual(release, {
[all …]
/third_party/typescript/src/testRunner/unittests/evaluation/
Ddestructuring.ts10 assert.deepEqual(result.output, [0, 1]);
18 assert.deepEqual(result.output, [1]);
28 assert.deepEqual(result.output, [0, 1, 2]);
36 assert.deepEqual(result.output, [0, 1, 2]);
46 assert.deepEqual(result.output, { a: 1, b: { y: 2 } });
54 assert.deepEqual(result.output, { a: 1, b: { y: 2 } });
62 assert.deepEqual(result.output, { a: 1, b: { y: 2 } });
/third_party/node/deps/npm/node_modules/xtend/
Dtest.js9 assert.deepEqual(extend(a, b), { a: "foo", b: "bar" })
17 assert.deepEqual(extend(a, b), { a: "bar" })
25 assert.deepEqual(extend(a, b), { a: undefined, b: "foo" })
26 assert.deepEqual(extend(b, a), { a: undefined, b: "foo" })
34 assert.deepEqual(extend(a, b), { a: 0 })
35 assert.deepEqual(extend(b, a), { a: "default" })
52 assert.deepEqual(extend(b, a, c), { foo: "bar" })
70 assert.deepEqual(extend(a, b), { a: "foo", b: "bar" })
/third_party/node/deps/npm/node_modules/libnpmteam/test/
Dindex.js20 t.deepEqual(ret, { name: 'cli' }, 'request succeeded')
46 t.deepEqual(ret, { name: 'cli' }, 'no desc in return')
55 t.deepEqual(ret, {}, 'request succeeded')
64 t.deepEqual(ret, {}, 'request succeeded')
73 t.deepEqual(ret, {}, 'request succeeded')
82 t.deepEqual(ret, ['foo:bar', 'foo:cli'], 'got teams')
101 t.deepEqual(ret, ['foo:bar', 'foo:cli'], 'got teams')
120 t.deepEqual(ret, ['iarna', 'zkat'], 'got team members')
129 t.deepEqual(ret, ['iarna', 'zkat'], 'got team members')

12345678910