mirror of
https://github.com/reduxjs/redux-devtools.git
synced 2024-12-05 16:03:54 +03:00
104 lines
2.5 KiB
Plaintext
104 lines
2.5 KiB
Plaintext
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
|
|
|
exports[`TestGenerator component should be empty when no actions provided 1`] = `
|
|
<textarea
|
|
style="padding:10px;width:100%;height:100%"
|
|
/>
|
|
`;
|
|
|
|
exports[`TestGenerator component should generate test for the last action when selectedActionId not specified 1`] = `
|
|
<textarea
|
|
style="padding:10px;width:100%;height:100%"
|
|
>
|
|
import expect from 'expect';
|
|
import reducers from '../../reducers';
|
|
|
|
describe('reducers', () => {
|
|
it('should handle actions', () => {
|
|
let state;
|
|
state = reducers({counter:0}, {type:'INCREMENT_COUNTER'});
|
|
expect(state).toEqual({counter:1});
|
|
});
|
|
});
|
|
|
|
</textarea>
|
|
`;
|
|
|
|
exports[`TestGenerator component should generate test for vanilla js class 1`] = `
|
|
<textarea
|
|
style="padding:10px;width:100%;height:100%"
|
|
>
|
|
import expect from 'expect';
|
|
import SomeStore from '../../stores/SomeStore';
|
|
|
|
describe('SomeStore', () => {
|
|
it('INCREMENT_COUNTER', () => {
|
|
const store = new SomeStore({counter:0});
|
|
INCREMENT_COUNTER();
|
|
expect(store.counter).toEqual(1);
|
|
});
|
|
});
|
|
|
|
</textarea>
|
|
`;
|
|
|
|
exports[`TestGenerator component should generate test for vanilla js class with string template 1`] = `
|
|
<textarea
|
|
style="padding:10px;width:100%;height:100%"
|
|
>
|
|
import expect from 'expect';
|
|
import SomeStore from '../../stores/SomeStore';
|
|
|
|
describe('SomeStore', () => {
|
|
it('INCREMENT_COUNTER', () => {
|
|
const store = new SomeStore({counter:0});
|
|
INCREMENT_COUNTER();
|
|
expect(store.counter).toEqual(1);
|
|
});
|
|
});
|
|
|
|
</textarea>
|
|
`;
|
|
|
|
exports[`TestGenerator component should match function template's test for first action 1`] = `
|
|
<textarea
|
|
style="padding:10px;width:100%;height:100%"
|
|
>
|
|
import expect from 'expect';
|
|
import reducers from '../../reducers';
|
|
|
|
describe('reducers', () => {
|
|
it('should handle actions', () => {
|
|
let state;
|
|
state = reducers({counter:0}, {type:'INCREMENT_COUNTER'});
|
|
expect(state).toEqual({counter:1});
|
|
});
|
|
});
|
|
|
|
</textarea>
|
|
`;
|
|
|
|
exports[`TestGenerator component should match string template's test for first action 1`] = `
|
|
<textarea
|
|
style="padding:10px;width:100%;height:100%"
|
|
>
|
|
import expect from 'expect';
|
|
import reducers from '../../reducers';
|
|
|
|
describe('reducers', () => {
|
|
it('should handle actions', () => {
|
|
let state;
|
|
state = reducers({counter:0}, {type:'INCREMENT_COUNTER'});
|
|
expect(state).toEqual({counter:1});
|
|
});
|
|
});
|
|
|
|
</textarea>
|
|
`;
|
|
|
|
exports[`TestGenerator component should show warning message when no params provided 1`] = `
|
|
<textarea
|
|
style="padding:10px;width:100%;height:100%"
|
|
/>
|
|
`;
|