本文整理汇总了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"}})});
});
示例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);
});
示例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"}));
});
示例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})});
});
示例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));
});