From b98a042541ce109c03d9575f208d912bac8e66a0 Mon Sep 17 00:00:00 2001 From: "wacky6.AriesMBP" <416707889@qq.com> Date: Sat, 20 May 2017 01:46:09 +0800 Subject: [PATCH] Switch: add test for single source of truth --- test/unit/specs/switch.spec.js | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) diff --git a/test/unit/specs/switch.spec.js b/test/unit/specs/switch.spec.js index 36c9ad2ea..c2ec1f2bf 100644 --- a/test/unit/specs/switch.spec.js +++ b/test/unit/specs/switch.spec.js @@ -148,4 +148,31 @@ describe('Switch', () => { }, 10); }, 10); }); + + it('value is the single source of truth', done => { + vm = createVue({ + template: ` +