Updated to airbnb coding styles

This commit is contained in:
Alejandro Celaya
2022-03-26 12:17:42 +01:00
parent 4e9b19afd1
commit a2df486280
239 changed files with 2210 additions and 3549 deletions

View File

@@ -6,9 +6,9 @@ describe('redux', () => {
describe('buildActionCreator', () => {
it.each([
[ 'foo', { type: 'foo' }],
[ 'bar', { type: 'bar' }],
[ 'something', { type: 'something' }],
['foo', { type: 'foo' }],
['bar', { type: 'bar' }],
['something', { type: 'something' }],
])('returns an action creator', (type, expected) => {
const actionCreator = buildActionCreator(type);
@@ -37,8 +37,8 @@ describe('redux', () => {
});
it.each([
[ 'foo', 'foo result', fooActionHandler, barActionHandler ],
[ 'bar', 'bar result', barActionHandler, fooActionHandler ],
['foo', 'foo result', fooActionHandler, barActionHandler],
['bar', 'bar result', barActionHandler, fooActionHandler],
])(
'returns a reducer which calls corresponding action handler',
(type, expected, invokedActionHandler, notInvokedActionHandler) => {
@@ -49,9 +49,9 @@ describe('redux', () => {
);
it.each([
[ undefined, initialState ],
[ 'foo', 'foo' ],
[ 'something', 'something' ],
[undefined, initialState],
['foo', 'foo'],
['something', 'something'],
])('returns a reducer which calls action handler with provided state or initial', (state, expected) => {
reducer(state, { type: 'foo' });