From 0bc8cce1888a79f8f79e4349a67939fcb494cf70 Mon Sep 17 00:00:00 2001 From: S-YOU Date: Sat, 4 Mar 2017 21:47:48 +0900 Subject: [PATCH] chore: \s match all whitespaces --- test/unit/features/directives/once.spec.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/unit/features/directives/once.spec.js b/test/unit/features/directives/once.spec.js index 0d4d2c0a869..cdfdb0144ec 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) }