mirror of
https://github.com/meteor/meteor.git
synced 2026-01-10 08:08:24 -05:00
[boilerplate-generator-tests] Remove underscore
This commit is contained in:
@@ -14,7 +14,6 @@ Npm.depends({
|
||||
Package.onTest(function (api) {
|
||||
api.use('ecmascript');
|
||||
api.use([
|
||||
'underscore',
|
||||
'tinytest',
|
||||
'boilerplate-generator'
|
||||
], 'server');
|
||||
|
||||
@@ -1,6 +1,5 @@
|
||||
import { parse, serialize } from 'parse5';
|
||||
import { generateHTMLForArch } from './test-lib';
|
||||
import { _ } from 'meteor/underscore';
|
||||
|
||||
Tinytest.addAsync(
|
||||
"boilerplate-generator-tests - web.browser - basic output",
|
||||
@@ -66,10 +65,6 @@ Tinytest.addAsync(
|
||||
async function (test) {
|
||||
const newHtml = await generateHTMLForArch("web.browser", false);
|
||||
|
||||
_.templateSettings = {
|
||||
interpolate: /\{\{(.+?)\}\}/g
|
||||
};
|
||||
|
||||
test.matches(newHtml, /foo="foobar"/);
|
||||
test.matches(newHtml, /<link[^<>]*href="[^<>]*bootstrap[^<>]*">/);
|
||||
test.matches(newHtml, /<script[^<>]*src="[^<>]*templating[^<>]*">/);
|
||||
|
||||
@@ -1,6 +1,5 @@
|
||||
import { parse, serialize } from 'parse5';
|
||||
import { generateHTMLForArch } from './test-lib';
|
||||
import { _ } from 'meteor/underscore';
|
||||
|
||||
Tinytest.addAsync(
|
||||
"boilerplate-generator-tests - web.cordova - basic output",
|
||||
@@ -60,9 +59,7 @@ Tinytest.addAsync(
|
||||
async function (test) {
|
||||
const newHtml = await generateHTMLForArch('web.cordova', false);
|
||||
|
||||
_.templateSettings = {
|
||||
interpolate: /\{\{(.+?)\}\}/g
|
||||
};
|
||||
|
||||
test.matches(newHtml, /<link[^<>]*href="[^<>]*bootstrap[^<>]*">/);
|
||||
test.matches(newHtml, /<script[^<>]*src="[^<>]*templating[^<>]*">/);
|
||||
test.matches(newHtml, /<script>var a/);
|
||||
|
||||
Reference in New Issue
Block a user