From ec30273c7ca25d8ade6a6d6d6dfba598e8403dd2 Mon Sep 17 00:00:00 2001 From: GeekPlux Date: Thu, 6 Dec 2018 22:35:11 +0800 Subject: [PATCH] fix: test demo failed when lint is standard --- template/test/index.test.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/template/test/index.test.js b/template/test/index.test.js index 0cb2a61..184ffd0 100644 --- a/template/test/index.test.js +++ b/template/test/index.test.js @@ -1,3 +1,7 @@ +<%_ if (eslint === 'standard') { -%> +/* global test, expect */ +<%_ } -%> + <%_ if (compile) { -%> import <%= this.camelcase(name) %> from '../src' <%_ } else { -%>