Commit fc4cabca authored by Mike Greiling's avatar Mike Greiling

update test_bundle to use ES module syntax

parent 283f968e
// enable test fixtures import $ from 'jquery';
require('jasmine-jquery'); import _ from 'underscore';
import 'jasmine-jquery';
import '~/commons';
// enable test fixtures
jasmine.getFixtures().fixturesPath = '/base/spec/javascripts/fixtures'; jasmine.getFixtures().fixturesPath = '/base/spec/javascripts/fixtures';
jasmine.getJSONFixtures().fixturesPath = '/base/spec/javascripts/fixtures'; jasmine.getJSONFixtures().fixturesPath = '/base/spec/javascripts/fixtures';
// include common libraries // globalize common libraries
require('~/commons/index.js'); window.$ = window.jQuery = $;
window.$ = window.jQuery = require('jquery'); window._ = _;
window._ = require('underscore');
// stub expected globals // stub expected globals
window.gl = window.gl || {}; window.gl = window.gl || {};
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment