diff --git a/test/unit/features/directives/once.spec.js b/test/unit/features/directives/once.spec.js index 0d4d2c0a..cdfdb014 100644 --- a/test/unit/features/directives/once.spec.js +++ b/test/unit/features/directives/once.spec.js @@ -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) }