Skip to content

Commit

Permalink
fix: add test for chinese scope
Browse files Browse the repository at this point in the history
  • Loading branch information
imcuttle committed Aug 28, 2018
1 parent 3c5427e commit a4c4f52
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions test/test.js
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,9 @@ betterThanBefore.setups([
},
function() {
shell.exec('git tag v1.0.0')
gitDummyCommit('feat: some more features')
gitDummyCommit('feat(你好): some more features')
gitDummyCommit('feat(你好): 你好')
gitDummyCommit('feat(你 好): 你 好')
},
function() {
gitDummyCommit(['feat(*): implementing #5 by @dlmr', ' closes #10'])
Expand Down Expand Up @@ -121,7 +123,9 @@ describe('befe preset', function() {
function(chunk, enc, cb) {
chunk = chunk.toString()

expect(chunk).to.include('some more features')
expect(chunk).to.include('**你 好:** 你 好')
expect(chunk).to.include('**你好:** some more features')
expect(chunk).to.include('**你好:** 你好')
expect(chunk).to.not.include('BREAKING')

i++
Expand Down

0 comments on commit a4c4f52

Please sign in to comment.