├── .gitignore ├── package.json ├── src └── Notification.js └── test ├── helpers └── setup-browser-env.js └── notification.js /.gitignore: -------------------------------------------------------------------------------- 1 | node_modules -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "vue-testing", 3 | "version": "1.0.0", 4 | "description": "", 5 | "main": "index.js", 6 | "scripts": { 7 | "test": "echo \"Error: no test specified\" && exit 1" 8 | }, 9 | "keywords": [], 10 | "author": "", 11 | "license": "ISC", 12 | "babel": { 13 | "presets": [ 14 | "es2015" 15 | ] 16 | }, 17 | "ava": { 18 | "require": [ 19 | "babel-register", 20 | "./test/helpers/setup-browser-env.js" 21 | ] 22 | }, 23 | "devDependencies": { 24 | "ava": "^0.18.1", 25 | "babel-register": "^6.22.0", 26 | "browser-env": "^2.0.21" 27 | }, 28 | "dependencies": { 29 | "vue": "^2.1.10" 30 | } 31 | } 32 | -------------------------------------------------------------------------------- /src/Notification.js: -------------------------------------------------------------------------------- 1 | export default { 2 | template: '