Home
last modified time | relevance | path

Searched refs:equal (Results 1 – 25 of 259) sorted by relevance

1234567891011

/plugin/asciidocjs/node_modules/jake/test/unit/
Dparseargs.js64 assert.equal('foo', res.opts.tasks);
65 assert.equal(undefined, res.opts.jakefile);
70 assert.equal('foo', res.opts.tasks);
71 assert.equal(undefined, res.opts.jakefile);
76 assert.equal(true, res.opts.tasks);
77 assert.equal(undefined, res.opts.jakefile);
82 assert.equal(true, res.opts.tasks);
87 assert.equal(true, res.opts.tasks);
88 assert.equal(undefined, res.opts.jakefile);
93 assert.equal('zoobie', res.opts.tasks);
[all …]
/plugin/asciidocjs/node_modules/resolve/test/
Dresolver.js7 t.equal(resolve, async, '`./async` entry point is the same as `main`');
17 t.equal(res, path.join(dir, 'foo.js'));
18 t.equal(pkg && pkg.name, 'resolve');
23 t.equal(res, path.join(dir, 'foo.js'));
24 t.equal(pkg && pkg.name, 'resolve');
29 t.equal(res, path.join(dir, 'foo.js'));
30 t.equal(pkg && pkg.main, 'resolver');
35 t.equal(res, path.join(dir, 'foo.js'));
36 t.equal(pkg.main, 'resolver');
41 t.equal(res, path.join(dir, 'foo.js'));
[all …]
Dresolver_sync.js12 t.equal(resolve.sync, sync, '`./sync` entry point is the same as `.sync` on `main`');
19 t.equal(
25 t.equal(
32 t.equal(
38 t.equal(
45 t.equal(
73 t.equal(
79 t.equal(
92 t.equal(
98 t.equal(
[all …]
Dpathfilter.js9 t.equal(pkg.version, '1.2.3');
10 t.equal(x, path.join(resolverDir, 'node_modules/deep/ref'));
11 t.equal(remainder, 'ref');
23 st.equal(pkg.version, '1.2.3');
24 st.equal(res, path.join(resolverDir, 'node_modules/deep/ref.js'));
28 st.equal(res, path.join(resolverDir, 'node_modules/deep/ref.js'));
40 st.equal(pkg.version, '1.2.3');
41 st.equal(res, path.join(resolverDir, 'node_modules/deep/deeper/ref.js'));
49 st.equal(res, path.join(resolverDir, 'node_modules/deep/deeper/ref.js'));
61 st.equal(res, path.join(resolverDir, 'node_modules/deep/alt.js'));
[all …]
Dmock.js34 t.equal(res, path.resolve('/foo/bar/baz.js'));
35 t.equal(pkg, undefined);
40 t.equal(res, path.resolve('/foo/bar/baz.js'));
41 t.equal(pkg, undefined);
45 t.equal(err.message, "Cannot find module 'baz' from '" + path.resolve('/foo/bar') + "'");
46 t.equal(err.code, 'MODULE_NOT_FOUND');
50 t.equal(err.message, "Cannot find module '../baz' from '" + path.resolve('/foo/bar') + "'");
51 t.equal(err.code, 'MODULE_NOT_FOUND');
85 t.equal(res, path.resolve('/foo/bar/baz.js'));
86 t.equal(pkg && pkg.main, 'bar');
[all …]
/plugin/sequencediagram/bower_components/lodash/vendor/backbone/test/
Dsync.js30 assert.equal(this.ajaxSettings.url, '/library');
31 assert.equal(this.ajaxSettings.type, 'GET');
32 assert.equal(this.ajaxSettings.dataType, 'json');
39 assert.equal(this.ajaxSettings.url, '/library');
40 assert.equal(this.ajaxSettings.data.a, 'a');
41 assert.equal(this.ajaxSettings.data.one, 1);
46 assert.equal(this.ajaxSettings.url, '/library');
47 assert.equal(this.ajaxSettings.type, 'POST');
48 assert.equal(this.ajaxSettings.dataType, 'json');
50 assert.equal(data.title, 'The Tempest');
[all …]
Dmodel.js29 assert.equal(this.collection, collection);
33 assert.equal(model.one, 1);
34 assert.equal(model.collection, collection);
40 assert.equal(model.get('hasOwnProperty'), true);
51 assert.equal(model.one, 1);
63 assert.equal(model.get('value'), 2);
76 assert.equal(model.one, 1);
77 assert.equal(model.collection, collection);
85 assert.equal(this.collection, undefined);
86 assert.equal(this.cid, undefined);
[all …]
Dcollection.js28 assert.equal(counter, 1);
32 assert.equal(counter, 2);
34 assert.equal(col.length, 4);
80 assert.equal(col.get(0), d);
81 assert.equal(col.get(d.clone()), d);
82 assert.equal(col.get(2), b);
83 assert.equal(col.get({id: 1}), c);
84 assert.equal(col.get(c.clone()), c);
85 assert.equal(col.get(col.first().cid), col.first());
93 assert.equal(collection.get(100), model);
[all …]
Devents.js11 assert.equal(obj.counter, 1, 'counter should be incremented.');
16 assert.equal(obj.counter, 5, 'counter should be incremented five times.');
27 assert.equal(obj.counter, 1);
30 assert.equal(obj.counter, 3);
33 assert.equal(obj.counter, 4);
37 assert.equal(obj.counter, 5);
55 assert.equal(obj.counter, 1);
58 assert.equal(obj.counter, 3);
61 assert.equal(obj.counter, 4);
68 assert.equal(obj.counter, 5);
[all …]
/plugin/asciidocjs/node_modules/is-buffer/test/
Dbasic.js5 t.equal(isBuffer(Buffer.alloc(4)), true, 'new Buffer(4)')
6 t.equal(isBuffer(Buffer.allocUnsafeSlow(100)), true, 'SlowBuffer(100)')
8 t.equal(isBuffer(undefined), false, 'undefined')
9 t.equal(isBuffer(null), false, 'null')
10 t.equal(isBuffer(''), false, 'empty string')
11 t.equal(isBuffer(true), false, 'true')
12 t.equal(isBuffer(false), false, 'false')
13 t.equal(isBuffer(0), false, '0')
14 t.equal(isBuffer(1), false, '1')
15 t.equal(isBuffer(1.0), false, '1.0')
[all …]
/plugin/sequencediagram/bower_components/lodash/vendor/underscore/test/
Dfunctions.js11 assert.equal(bound(), 'name: moe', 'can bind a function to a context');
14 assert.equal(bound(), 'name: moe', 'can do OO-style binding');
23 assert.equal(func('moe'), 'hello: moe', 'the function was partially applied in advance');
26 assert.equal(func(), 'hello: curly', 'the function was completely applied in advance');
30 …assert.equal(func(), 'hello: moe curly', 'the function was partially applied in advance and can ac…
32 func = function(ctx, message) { assert.equal(this, ctx, message); };
43 …assert.equal(newBoundf.hello, void 0, 'function should not be bound to the context, to comply with…
44 …assert.equal(boundf().hello, 'moe curly', "When called without the new operator, it's OK to be bou…
55 assert.equal(obj.func('c', 'd'), 'moe a b c d', 'can partially apply');
58 assert.equal(obj.func('a', 'c'), 'moe a b c d', 'can partially apply with placeholders');
[all …]
Dutility.js20 assert.equal(underscore.identity(1), 1);
22 assert.equal(this._, void 0, 'global underscore is removed');
44 assert.equal(context._, 'oldvalue');
45 assert.equal(context.underscore.VERSION, _.VERSION);
61 assert.equal(_.identity(stooge), stooge, 'stooge is the same as his identity');
66 assert.equal(_.constant(stooge)(), stooge, 'should create a function that returns stooge');
75 … assert.equal(_.property('name')(stooge), 'moe', 'should return the property with the given name');
76 assert.equal(_.property('name')(null), void 0, 'should return undefined for null values');
77 … assert.equal(_.property('name')(void 0), void 0, 'should return undefined for undefined values');
82 assert.equal(stoogeRanks('curly'), 2, 'should return the property with the given name');
[all …]
Dcollections.js8 assert.equal(num, i + 1, 'each iterators provide value and iteration count');
31 assert.equal(count, 3, 'the fun should be called only 3 times');
39 assert.equal(answers, 0, 'handles a null properly');
55 assert.equal(this, context);
123 assert.equal(answers, 100, method + ' enumerates [0, length)');
130 assert.equal(count, 3, method + ' is resistant to length changes');
140 assert.equal(count, 2, method + ' is resistant to property changes');
176 assert.equal(sum, 6, 'can sum up an array');
180 assert.equal(sum, 18, 'can reduce with a context object');
183 assert.equal(sum, 6, 'OO-style reduce');
[all …]
Darrays.js7 assert.equal(_.first([1, 2, 3]), 1, 'can pull out the first element of an array');
8 assert.equal(_([1, 2, 3]).first(), 1, 'can perform OO-style "first()"');
14 assert.equal(result, 4, 'works on an arguments object');
17 assert.equal(_.first(null), void 0, 'returns undefined when called on null');
20 assert.equal(_.first([]), void 0, 'return undefined when called on a empty array');
62 assert.equal(_.last([1, 2, 3]), 3, 'can pull out the last element of an array');
63 assert.equal(_([1, 2, 3]).last(), 3, 'can perform OO-style "last()"');
69 assert.equal(result, 4, 'works on an arguments object');
72 assert.equal(_.last(null), void 0, 'returns undefined when called on null');
76 assert.equal(_.last(arr), void 0, 'return undefined when called on a empty array');
[all …]
/plugin/asciidocjs/node_modules/minimist/test/
Dproto.js10 t.equal({}.x, undefined);
11 t.equal(argv.__proto__.x, undefined);
12 t.equal(argv.x, undefined);
18 t.equal({}.z, undefined);
20 t.equal(argv.x.z, undefined);
21 t.equal(argv.x.__proto__.z, undefined);
27 t.equal({}.z, undefined);
28 t.equal((4).z, undefined);
29 t.equal(argv.x, 5);
30 t.equal(argv.x.z, undefined);
[all …]
Dparse.js86 t.equal(s, '0001234');
87 t.equal(typeof s, 'string');
90 t.equal(x, '56');
91 t.equal(typeof x, 'string');
107 t.equal(s, '');
108 t.equal(typeof s, 'string');
111 t.equal(str, '');
112 t.equal(typeof str, 'string');
118 t.equal(letters.a, '');
119 t.equal(letters.r, true);
[all …]
/plugin/asciidocjs/node_modules/jake/test/integration/
Dtask_base.js15 assert.equal(out, 'default task');
17 assert.equal(out, 'default task');
22 assert.equal(out, 'default task');
40 assert.equal(args[0], 'foo');
41 assert.equal(args[1], 'bar');
48 assert.equal(env.foo, 'bar');
49 assert.equal(env.baz, 'qux');
57 assert.equal(args[0], 'foo');
58 assert.equal(args[1], 'bar');
59 assert.equal(env.foo, 'bar');
[all …]
Dfile_task.js44 assert.equal('fileTest:foo/src1.txt task\nfileTest:foo/from-src1.txt task',
47 assert.equal('fileTest:foo/src1.txt task\nfileTest:foo/from-src1.txt task',
55 assert.equal('fileTest:foo/src1.txt task\ndefault task\nfileTest:foo/src2.txt task\n' +
59 assert.equal('src1src2', data.toString());
66 assert.equal('fileTest:foo/src1.txt task\nfileTest:foo/from-src1.txt task', out);
69 assert.equal('', out);
81 assert.equal('fileTest:foo/from-src1.txt task', out);
84 assert.equal('', out);
95 assert.equal('fileTest:foo/from-prereq.txt task', out);
97 assert.equal(prereqData, data.toString());
[all …]
Drule.js74 assert.equal('foo:src/main.c', src);
85 assert.equal( output.join('\n'), out);
87 assert.equal('src_1src_2', data.toString());
100 assert.equal( output.join('\n'), out);
102 assert.equal('src_1src_2 pattern', data.toString());
115 assert.equal( output.join('\n'), out);
117 assert.equal('src/src_1src/src_2 pattern folder', data.toString());
132 assert.equal( output.join('\n'), out);
134 assert.equal('src/src_1src/src_2src/src_3 pattern folder namespace', data.toString());
148 assert.equal( output.join('\n'), out);
[all …]
Dfile.js40 assert.equal(path.join.apply(path, expected[i]), res[i]);
49 assert.equal(1, res.length);
50 assert.equal('foo', res[0]);
69 assert.equal(true, barDeleted);
73 assert.equal(1, res.length);
74 assert.equal('hello.txt', res[0]);
96 assert.equal(true, barDeleted);
100 assert.equal(1, res.length);
101 assert.equal('hello.txt', res[0]);
149 assert.equal(0o750, bazStat.mode & 0o7777);
[all …]
/plugin/sequencediagram/bower_components/js-sequence-diagrams/test/
Dgrammar-tests.js5 equal(d.actors.length, 1, 'Correct actors count');
8 equal(a.name, name, 'Actors A\'s name');
9 equal(a.alias, alias, 'Actors A\'s alias');
10 equal(a.index, 0, 'Actors A\'s index');
19 equal(d.actors.length, 2, 'Correct actors count');
23 equal(a.name, actorA, 'Actors A name');
24 equal(b.name, actorB, 'Actors B name');
26 equal(d.signals.length, 1, 'Correct signals count');
27 equal(d.signals[0].type, 'Signal', 'Correct signal type');
28 equal(d.signals[0].actorA, a, 'Actors A');
[all …]
/plugin/asciidocjs/node_modules/call-bind/test/
DcallBound.js9 t.equal(callBound('Array.length'), Array.length, 'Array.length yields itself');
10 t.equal(callBound('%Array.length%'), Array.length, '%Array.length% yields itself');
13 t.equal(callBound('Array.prototype'), Array.prototype, 'Array.prototype yields itself');
14 t.equal(callBound('%Array.prototype%'), Array.prototype, '%Array.prototype% yields itself');
15 t.equal(callBound('Array.constructor'), Array.constructor, 'Array.constructor yields itself');
16 t.equal(callBound('%Array.constructor%'), Array.constructor, '%Array.constructor% yields itself');
19 t.equal(callBound('Date.parse'), Date.parse, 'Date.parse yields itself');
20 t.equal(callBound('%Date.parse%'), Date.parse, '%Date.parse% yields itself');
23 …t.equal(callBound('Error.prototype.message'), Error.prototype.message, 'Error.prototype.message yi…
24 …t.equal(callBound('%Error.prototype.message%'), Error.prototype.message, '%Error.prototype.message…
[all …]
/plugin/asciidocjs/node_modules/function-bind/test/
Dindex.js9 t.equal(typeof functionBind, 'function');
35 st.equal(context, getCurrentContext.call());
49 st.equal(context, getCurrentContext.call());
62 st.equal(context, getCurrentContext.call(), 'returned context is namespaced context');
76 st.equal(context, getCurrentContext.call(), 'returned context is namespaced context');
89 sst.equal(result, expectedReturnValue);
129 st.equal(context, boundContext, 'binds a context properly');
144 st.equal(context, boundContext, 'binds a context properly');
159 st.equal(context, boundContext, 'returned context is bound context');
175 st.equal(context, boundContext, 'returned context is bound context');
[all …]
/plugin/asciidocjs/node_modules/pug-filters/node_modules/cliui/test/
Dcliui.js71 widths[0].should.equal(13)
72 widths[1].should.equal(13)
73 widths[2].should.equal(13)
82 widths[0].should.equal(20)
83 widths[1].should.equal(10)
84 widths[2].should.equal(10)
93 widths[0].should.equal(15)
94 widths[1].should.equal(10)
95 widths[2].should.equal(15)
104 widths[0].should.equal(20)
[all …]
/plugin/asciidocjs/node_modules/get-intrinsic/test/
DGetIntrinsic.js21 t.equal(typeof GetIntrinsic, 'function', 'it is a function');
22 t.equal(GetIntrinsic.length, 2, 'function has length of 2');
114 t.equal(GetIntrinsic('%Object%'), Object, '%Object% yields Object');
115 t.equal(GetIntrinsic('Object'), Object, 'Object yields Object');
116 t.equal(GetIntrinsic('%Array%'), Array, '%Array% yields Array');
117 t.equal(GetIntrinsic('Array'), Array, 'Array yields Array');
123 …t.equal(GetIntrinsic('%Object.prototype.toString%'), Object.prototype.toString, '%Object.prototype…
124 …t.equal(GetIntrinsic('Object.prototype.toString'), Object.prototype.toString, 'Object.prototype.to…
125 …t.equal(GetIntrinsic('%Array.prototype.push%'), Array.prototype.push, '%Array.prototype.push% yiel…
126 …t.equal(GetIntrinsic('Array.prototype.push'), Array.prototype.push, 'Array.prototype.push yields A…
[all …]

1234567891011