Skip to content

Commit

Permalink
::shirt: refactor(test): tweak custom formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
kazupon committed Mar 20, 2017
1 parent 221b51e commit 7536b60
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions test/unit/format_custom.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,13 +21,12 @@ describe('custom formatter', () => {

describe('via vue instance calling', () => {
it('should allows for specifying a custom formatter', done => {
class CustomFormatter {
format (message, ...args) {
const formatter = {
format: (message, ...args) => {
assert.deepEqual([1, 2, 3], args[0])
done()
}
}
const formatter = new CustomFormatter()
const vm = new Vue({
i18n: new VueI18n({
locale: 'en',
Expand Down

0 comments on commit 7536b60

Please sign in to comment.