本文整理匯總了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));
});