Skip to content

Commit 4e7fe33

Browse files
ragingwindaddyosmani
authored andcommitted
Fixes test errors (#14)
Fixes typo in tests Add a newline at bottom of App.vue Add a newline after import
1 parent bc35632 commit 4e7fe33

File tree

4 files changed

+6
-5
lines changed

4 files changed

+6
-5
lines changed

template/src/App.vue

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ header span {
5959
line-height: 1;
6060
letter-spacing: .02em;
6161
font-weight: 400;
62-
box-sizing: border-box;
63-
padding-top: 16px;
62+
box-sizing: border-box;
63+
padding-top: 16px;
6464
}
65-
</style>
65+
</style>

template/test/e2e/specs/test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ module.exports = {
1212
.url(devServer)
1313
.waitForElementVisible('#app', 5000)
1414
.assert.elementPresent('.hello')
15-
.assert.containsText('h1', 'Welcome to Your Vue.js App')
15+
.assert.containsText('h1', 'Welcome to Your Vue.js PWA')
1616
.assert.elementCount('img', 1)
1717
.end(){{#if_eq lintConfig "airbnb"}};{{/if_eq}}
1818
}{{#if_eq lintConfig "airbnb"}},{{/if_eq}}

template/test/unit/index.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import Vue from 'vue'{{#if_eq lintConfig "airbnb"}};{{/if_eq}}
2+
23
Vue.config.productionTip = false{{#if_eq lintConfig "airbnb"}};{{/if_eq}}
34

45
// Polyfill fn.bind() for PhantomJS

template/test/unit/specs/Hello.spec.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,6 @@ describe('Hello.vue', () => {
66
const Constructor = Vue.extend(Hello){{#if_eq lintConfig "airbnb"}};{{/if_eq}}
77
const vm = new Constructor().$mount(){{#if_eq lintConfig "airbnb"}};{{/if_eq}}
88
expect(vm.$el.querySelector('.hello h1').textContent)
9-
.to.equal('Welcome to Your Vue.js App'){{#if_eq lintConfig "airbnb"}};{{/if_eq}}
9+
.to.equal('Welcome to Your Vue.js PWA'){{#if_eq lintConfig "airbnb"}};{{/if_eq}}
1010
}){{#if_eq lintConfig "airbnb"}};{{/if_eq}}
1111
}){{#if_eq lintConfig "airbnb"}};{{/if_eq}}

0 commit comments

Comments
 (0)