Пример #1
0
 fetchMock.mock(`${api.API_PREFIX}/databases/${dbName}/tables/${tableName}`, "get", (url: string, requestObj: RequestInit) => {
   assert.isUndefined(requestObj.body);
   return new Promise<any>(() => { });
 });
Пример #2
0
 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);
 });
Пример #3
0
 response: (url: string, requestObj: RequestInit) => {
   assert.isUndefined(requestObj.body);
   return new Promise<any>(() => { });
 },
Пример #4
0
 _.each(mockMetricsState.queries, (q) => {
   assert.isDefined(q.request);
   assert.isUndefined(q.error);
   assert.isDefined(q.data, "data not defined for query " + q.id);
 });
Пример #5
0
    it("should ensure AddQueryParams supports undefined baseUrl", function() {
        const url: string = undefined;

        const result: string = UrlBuilder.AddQueryParams(url);
        assert.isUndefined(result);
    });
Пример #6
0
 it("requires health to be available before displaying", function () {
   const alert = disconnectedAlertSelector(state());
   assert.isUndefined(alert);
 });
Пример #7
0
 it("requires versions to be loaded before displaying", function () {
   const alert = staggeredVersionWarningSelector(state());
   assert.isUndefined(alert);
 });
Пример #8
0
 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();
 });
Пример #10
0
 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);
 });