].forEach((tuple: any) => { let modifiedEncQ = duplicate(encQ); modifiedEncQ[tuple[0]] = tuple[1]; assert.isTrue(FIELD_CONSTRAINT_INDEX['onlyOneTypeOfFunction'].satisfy(encQ, schema, new PropIndex<Wildcard<any>>(), defaultOpt)); });
it('detects WeakMap', () => { assert.isTrue(isWeakMap(new WeakMap())); assert.isFalse(isWeakMap(undefined)); assert.isFalse(isWeakMap(null)); assert.isFalse(isWeakMap([1, 2])); });
it("`t.readBson(t.writeBson(val))` should be valid and equal to `val`", function () { const imported: T = type.read!(reader, actualSerialized); chai.assert.isTrue(type.test(imported)); chai.assert.isTrue(type.equals(imported, typedValue.value)); });
it("returns true for .ts files", () => { assert.isTrue(projectFilesProvider.isFileExcluded("test.ts")); });
it('should create hidden string with length equal or bigger than given length', () => { assert.isTrue(hiddenStringActualLength > originalStringActualLength); });
applicationManager.on("debuggableViewFound", (appIdentifier: string, d: Mobile.IDebugWebViewInfo) => { expectedView.id = "new id"; assert.isTrue(_.isEqual(d, expectedView)); setTimeout(done, 0); });
applicationManager.startApplication = (appData: Mobile.IApplicationData) => { assert.isTrue(isStopApplicationCalled, "When startApplication is called, stopApplication must have been resolved."); isStartApplicationCalled = true; return Promise.resolve(); };
it('checks whether a value is a regexp', function () { assert.isTrue(isRegexp(/r/)); assert.isTrue(isRegexp(new RegExp('r'))); assert.isFalse(isRegexp('/r/')); });
it('returns true is value is equal to expected one', function () { assert.isTrue(isEqual(5, '5')); assert.isTrue(isEqual(5, 5)); assert.isTrue(isEqual(5)('5')); assert.isTrue(isEqual(5)(5)); });
it('returns true if the values represent the same regular expression', () => { var mapping = new RegExpMapping(); assert.isTrue(mapping.areEqual(/./, /./)); });