fetchMock.mock(`${api.API_PREFIX}/databases/${dbName}/tables/${tableName}`, "get", (url: string, requestObj: RequestInit) => { assert.isUndefined(requestObj.body); return new Promise<any>(() => { }); });
it("should verify FindGitFolder with no found .git folder", function() { const repoPath: string = __dirname; //We need use DOT_GIT_FOLDER here since the test resides in a .git repository const actualRepoPath: string = Utils.FindGitFolder(repoPath, DOT_GIT_FOLDER); assert.isUndefined(actualRepoPath); });
response: (url: string, requestObj: RequestInit) => { assert.isUndefined(requestObj.body); return new Promise<any>(() => { }); },
_.each(mockMetricsState.queries, (q) => { assert.isDefined(q.request); assert.isUndefined(q.error); assert.isDefined(q.data, "data not defined for query " + q.id); });
it("should ensure AddQueryParams supports undefined baseUrl", function() { const url: string = undefined; const result: string = UrlBuilder.AddQueryParams(url); assert.isUndefined(result); });
it("requires health to be available before displaying", function () { const alert = disconnectedAlertSelector(state()); assert.isUndefined(alert); });
it("requires versions to be loaded before displaying", function () { const alert = staggeredVersionWarningSelector(state()); assert.isUndefined(alert); });
test('returns undefined for empty tags', () => { assert.isUndefined(jsdoc.getPrivacy({description: '', tags: []})); });
fetchCosmicData(mutationDataWithNoKeyword, emptyUncalledMutationData, internalClient as any).then((data: any) => { assert.isUndefined(data); assert.isFalse(fetchStub.called); done(); });
it("doesn't display when local dismissal set", function () { dispatch(setUIDataKey(KEY_HELPUS, null)); dispatch(helpusBannerDismissedSetting.set(true)); const alert = helpusNotificationSelector(state()); assert.isUndefined(alert); });