當前位置: 首頁>>代碼示例>>TypeScript>>正文


TypeScript deep-freeze-node.default函數代碼示例

本文整理匯總了TypeScript中deep-freeze-node.default函數的典型用法代碼示例。如果您正苦於以下問題:TypeScript default函數的具體用法?TypeScript default怎麽用?TypeScript default使用的例子?那麽, 這裏精選的函數代碼示例或許可以為您提供幫助。


在下文中一共展示了default函數的5個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的TypeScript代碼示例。

示例1: pit

 pit('dispatches fetchEmotions', () => {
         let state = deepFreeze(initialState);
         var store = mockStore(state, [
             { payload: { args: [ '/slug' ], method: 'push' }, type: '@@router/CALL_HISTORY_METHOD' },
             { type: RECEIVE_EMOTION_REQUEST, payload: {faces: face, url : "test_url"}}], done);
         return store.dispatch(fetchEmotions("test_url", "slug")).then((response) => {expect(response).toEqual({ type: RECEIVE_EMOTION_REQUEST, payload: {faces: face, url : "test_url"}})});
 });
開發者ID:blackmob,項目名稱:Examples,代碼行數:7,代碼來源:emotionAction-test.spec.ts

示例2: it

    it('handles LOAD_EMOTION_REQUEST state', () => {

        var state = deepFreeze(initialState);
       
        var newState = cloudCast(state, { type: LOAD_EMOTION_REQUEST, payload: initialState });

        expect(newState).toEqual(initialState);
    });
開發者ID:blackmob,項目名稱:Examples,代碼行數:8,代碼來源:emotionReducer.test.spec.ts

示例3: it

 it('dispatches RECEIVE_EMOTION_REQUEST', () => {
         let state = deepFreeze(initialState);
         var store = mockStore(state, [{ type: RECEIVE_EMOTION_REQUEST, payload: {faces : face, url : "test"}}], done);
         store.dispatch(receiveEmotionsRequest({faces:face, url: "test"}));
 });
開發者ID:blackmob,項目名稱:Examples,代碼行數:5,代碼來源:emotionAction-test.spec.ts

示例4: pit

 pit('dispatches fetchShows', () => {
         let state = deepFreeze(initialState);
         var store = mockStore(state, [{ type: RECEIVE_SHOWS_REQUEST, payload: shows}], done);
         return store.dispatch(fetchShows(null)).then((response) => {expect(response).toEqual({ type: RECEIVE_SHOWS_REQUEST, payload: shows})});
 });
開發者ID:blackmob,項目名稱:Examples,代碼行數:5,代碼來源:cloudcastAction-test.spec.ts

示例5: it

 it('dispatches RECEIVE_SHOWS_REQUEST', () => {
         let state = deepFreeze(initialState);
         var store = mockStore(state, [{ type: RECEIVE_SHOWS_REQUEST, payload: shows}], done);
         store.dispatch(receiveShowsRequest(shows));
 });
開發者ID:blackmob,項目名稱:Examples,代碼行數:5,代碼來源:cloudcastAction-test.spec.ts


注:本文中的deep-freeze-node.default函數示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。