-
Notifications
You must be signed in to change notification settings - Fork 750
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix tests, colour behaviour, and snackbar button styling.
- Loading branch information
Showing
30 changed files
with
158 additions
and
72 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
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,13 @@ | ||
import Vue from 'vue'; | ||
import VueMeta from 'vue-meta'; | ||
import VueRouter from 'vue-router'; | ||
import Vuex from 'vuex'; | ||
import VueAphrodite from './vueAphrodite'; | ||
|
||
// Register Vue plugins | ||
Vue.use(Vuex); | ||
Vue.use(VueRouter); | ||
Vue.use(VueMeta); | ||
Vue.use(VueAphrodite); | ||
|
||
export default Vue; |
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
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 |
---|---|---|
@@ -0,0 +1,20 @@ | ||
import { lighten, darken } from '../../src/utils/colour'; | ||
|
||
describe('colour utils', () => { | ||
describe('lighten function', () => { | ||
it('should lighten a colour using a ratio', () => { | ||
expect(lighten('#555555', 0.1)).toEqual('rgb(94, 94, 94)'); | ||
}); | ||
it('should lighten a colour using a percentage', () => { | ||
expect(lighten('#555555', '10%')).toEqual('rgb(94, 94, 94)'); | ||
}); | ||
}); | ||
describe('darken function', () => { | ||
it('should darken a colour using a ratio', () => { | ||
expect(darken('#555555', 0.1)).toEqual('rgb(77, 77, 77)'); | ||
}); | ||
it('should darken a colour using a percentage', () => { | ||
expect(darken('#555555', '10%')).toEqual('rgb(77, 77, 77)'); | ||
}); | ||
}); | ||
}); |
Oops, something went wrong.