Browse Source

fix(tests): fix linting errors on new tests

renovate/lint-staged-8.x
Jack Mallers 8 years ago
parent
commit
8794d3b51f
  1. 2
      test/reducers/balance.spec.js
  2. 8
      test/reducers/channels.spec.js
  3. 2
      test/reducers/form.spec.js
  4. 2
      test/reducers/info.spec.js
  5. 4
      test/reducers/invoice.spec.js

2
test/reducers/balance.spec.js

@ -21,4 +21,4 @@ describe('reducers', () => {
expect(balanceReducer(undefined, { type: 'unknown' })).toMatchSnapshot()
})
})
})
})

8
test/reducers/channels.spec.js

@ -50,16 +50,16 @@ describe('reducers', () => {
expect(channelsReducer(undefined, { type: SET_CHANNEL_FORM, form: { isOpen: true } })).toMatchSnapshot()
})
it('should correctly setChannelForm', () => {
it('should correctly getChannels', () => {
expect(channelsReducer(undefined, { type: GET_CHANNELS })).toMatchSnapshot()
})
it('should correctly setChannelForm', () => {
it('should correctly receiveChannel', () => {
expect(channelsReducer(undefined, { type: RECEIVE_CHANNELS, channels: [1, 2], pendingChannels: [3, 4] })).toMatchSnapshot()
})
it('should correctly setChannelForm', () => {
it('should correctly openingChannel', () => {
expect(channelsReducer(undefined, { type: OPENING_CHANNEL })).toMatchSnapshot()
})
})
})
})

2
test/reducers/form.spec.js

@ -61,4 +61,4 @@ describe('reducers', () => {
expect(formReducer(undefined, { type: RESET_FORM })).toMatchSnapshot()
})
})
})
})

2
test/reducers/info.spec.js

@ -25,4 +25,4 @@ describe('reducers', () => {
expect(infoReducer(undefined, { type: RECEIVE_INFO, data: 'foo' })).toMatchSnapshot()
})
})
})
})

4
test/reducers/invoice.spec.js

@ -61,7 +61,7 @@ describe('reducers', () => {
expect(invoiceReducer(undefined, { type: SEARCH_INVOICES, invoicesSearchText: 'foo' })).toMatchSnapshot()
})
it('should correctly searchInvoices', () => {
it('should correctly setInvoice', () => {
expect(invoiceReducer(undefined, { type: SET_INVOICE, invoice: 'foo' })).toMatchSnapshot()
})
@ -97,4 +97,4 @@ describe('reducers', () => {
expect(invoiceReducer(undefined, { type: INVOICE_FAILED })).toMatchSnapshot()
})
})
})
})

Loading…
Cancel
Save