-
Notifications
You must be signed in to change notification settings - Fork 156
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Toby Ryuk
committed
Feb 22, 2018
1 parent
9996488
commit ab4e4fc
Showing
5 changed files
with
3,442 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
{ | ||
"presets": [ | ||
["env", { "modules": false }] | ||
], | ||
"env": { | ||
"test": { | ||
"presets": [ | ||
["env", { "targets": { "node": "current" }}] | ||
] | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
import { shallow } from '@vue/test-utils' | ||
import { createRenderer } from 'vue-server-renderer' | ||
|
||
import PictureInput from '../PictureInput.vue' | ||
|
||
describe('PictureInput.vue', () => { | ||
it('matches snapshot', () => { | ||
const renderer = createRenderer() | ||
const wrapper = shallow(PictureInput) | ||
renderer.renderToString(wrapper.vm, (err, str) => { | ||
if (err) throw new Error(err) | ||
expect(str).toMatchSnapshot() | ||
}) | ||
}) | ||
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
// Jest Snapshot v1, https://goo.gl/fbAQLP | ||
|
||
exports[`PictureInput.vue matches snapshot 1`] = ` | ||
<div id="picture-input" class="picture-input"> | ||
<div> | ||
<button class="btn btn-primary button">Select a Photo</button> | ||
</div> | ||
<input type="file" accept="image/*"> | ||
</div> | ||
`; |
Oops, something went wrong.