How to use the notEqual function from assert-plus
Find comprehensive JavaScript assert-plus.notEqual code examples handpicked from public code repositorys.
33 34 35 36 37 38 39 40 41 42
// Store library entry info in lib map. key = e.libName; assert.equal(key, e.enclosedByQualifiedName, e); _set(libToEntryMap, key, e); } else if (e.enclosedBy) { assert.notEqual(e.type, 'library'); key = e.enclosedByQualifiedName; } else { assert.equal(e.type, 'library'); // Add library "index" page to the library's entries in the general container map,
80
90
0
927 928 929 930 931 932 933 934 935 936 937
return cb(err); } // Make sure that the filter is not the filter that selects all VMs. // We don't want to allow deletion of all VMs via this API. assert.notEqual(filter, SELECT_ALL_FILTER); return self._morayClient.deleteMany(self._VMS_BUCKET_NAME, filter, params, cb); }); };
20
11
0
614 615 616 617 618 619 620 621 622 623
cb(OK_EARLY_ABORT); }); }, function do_migration_finalize(ctx, cb) { assert.notEqual(action, 'estimate'); if (action !== 'finalize') { cb(); return;
20
11
0
+ 10 other calls in file
151 152 153 154 155 156 157 158 159 160
type + 'partial result' + desc); } if (opts.reqType === 'create') { // We take plural names elsewhere, but expect the singular here: assert.notEqual('s', opts.type.slice(-1)); addToState(opts, opts.type + 's', obj); } done(null, obj, res, opts, t, callback);
6
0
0
85 86 87 88 89 90 91 92 93 94
'arguments: (req, res, next). Async handler functions should ' + 'accept maximum of 2 arguments: (req, res).' ); } else { // otherwise shouldn't be AsyncFunction assert.notEqual( handler.constructor.name, 'AsyncFunction', `Handler [${handlerId}] accepts a third argument (the 'next" ` + 'callback) but is also an async function. Middleware ' +
0
2
0
assert-plus.object is the most popular function in assert-plus (2295 examples)