当前位置: 首页>>代码示例>>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;未经允许,请勿转载。