From 23a20ce09db01e8a37a26e4f3355b7779e7191b6 Mon Sep 17 00:00:00 2001 From: YOU Date: Sun, 5 Mar 2017 00:40:14 +0000 Subject: [PATCH] chore: \s match all whitespaces (#5091) --- 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 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) }