-
Notifications
You must be signed in to change notification settings - Fork 66
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fixed style-loaders, fixed launch of tests, added yarn
- Loading branch information
Showing
10 changed files
with
41 additions
and
36 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 |
---|---|---|
|
@@ -3,3 +3,4 @@ app/dist/** | |
test/unit/coverage/** | ||
test/unit/*.js | ||
test/e2e/*.js | ||
webpack.** |
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 |
---|---|---|
|
@@ -32,6 +32,8 @@ | |
</script> | ||
|
||
<style lang="scss"> | ||
@import './styles/milligram'; | ||
main { | ||
padding: 20px 20px 20px 20px; | ||
} | ||
|
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 |
---|---|---|
|
@@ -166,8 +166,6 @@ | |
</script> | ||
|
||
<style lang="scss"> | ||
@import '../../styles/style'; | ||
.game { | ||
position: relative; | ||
|
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
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 |
---|---|---|
@@ -1,4 +1,3 @@ | ||
@import 'variables'; | ||
@import 'mixins'; | ||
@import 'helpers'; | ||
@import 'milligram'; |
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 |
---|---|---|
@@ -1,13 +1,22 @@ | ||
import Vue from 'vue'; | ||
import VueRouter from 'vue-router'; | ||
|
||
import Topbar from 'renderer/components/Topbar'; | ||
|
||
describe('Topbar.vue', () => { | ||
it('should render correct contents', () => { | ||
it('should render', () => { | ||
Vue.use(VueRouter); | ||
const router = new VueRouter({ | ||
routes: [] | ||
}); | ||
|
||
const vm = new Vue({ | ||
router, | ||
el: document.createElement('div'), | ||
render: h => h(Topbar) | ||
}).$mount(); | ||
|
||
expect(vm.$el.querySelector('.logo').textContent).to.contain('Space Snake'); | ||
expect(vm.$el !== null).to.be.true; | ||
expect(vm.$el.querySelector('.logo') !== null).to.be.true; | ||
}); | ||
}); |
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