Prettier format all js files

This commit is contained in:
George Drummond
2019-01-24 09:38:43 -05:00
parent 20604e6ca9
commit 619bc9fe59
32 changed files with 553 additions and 443 deletions

View File

@@ -2,9 +2,10 @@ import { shallowMount } from '@vue/test-utils'
import LocalDatetime from '../local_datetime'
describe('LocalDatetime', () => {
const wrapper = shallowMount(LocalDatetime, { propsData: { timestamp: '1977-05-25 00:00:00' } })
const wrapper = shallowMount(LocalDatetime, {
propsData: { timestamp: '1977-05-25 00:00:00' },
})
it('renders a time element', () => {
expect(wrapper.html()).toContain('<time')
@@ -16,14 +17,12 @@ describe('LocalDatetime', () => {
})
it('allows specifying a custom format', () => {
const wrapperWithCustomFormat = shallowMount(
LocalDatetime, {
propsData: {
timestamp: '1977-05-25 00:00:00',
format: 'MMM Do YY'
}
}
)
const wrapperWithCustomFormat = shallowMount(LocalDatetime, {
propsData: {
timestamp: '1977-05-25 00:00:00',
format: 'MMM Do YY',
},
})
expect(wrapperWithCustomFormat).toMatchSnapshot()
})
})