chore: \s match all whitespaces (#5091)

This commit is contained in:
YOU 2017-03-05 00:40:14 +00:00 committed by kazuya kawaguchi
parent 62e4f2b3d1
commit 23a20ce09d

View File

@ -338,5 +338,5 @@ describe('Directive v-once', () => {
})
function expectTextContent (vm, text) {
expect(vm.$el.textContent.replace(/\r?\n|\r|\s/g, '')).toBe(text)
expect(vm.$el.textContent.replace(/\s+/g, '')).toBe(text)
}