Browse Source

Use ES6 import in Parser tests

pull/2145/head
Artur Arseniev 7 years ago
parent
commit
a66ed6a63d
  1. 4
      test/specs/parser/index.js
  2. 3
      test/specs/parser/model/ParserCss.js
  3. 6
      test/specs/parser/model/ParserHtml.js

4
test/specs/parser/index.js

@ -1,5 +1,5 @@
const ParserHtml = require('./model/ParserHtml');
const ParserCss = require('./model/ParserCss');
import ParserHtml from './model/ParserHtml';
import ParserCss from './model/ParserCss';
describe('Parser', () => {
ParserHtml.run();

3
test/specs/parser/model/ParserCss.js

@ -1,6 +1,5 @@
import { parseSelector } from 'parser/model/BrowserParserCss';
const ParserCss = require('parser/model/ParserCss');
const Selector = require('selector_manager/model/Selector');
import ParserCss from 'parser/model/ParserCss';
module.exports = {
run() {

6
test/specs/parser/model/ParserHtml.js

@ -1,6 +1,6 @@
const ParserHtml = require('parser/model/ParserHtml');
const ParserCss = require('parser/model/ParserCss');
const DomComponents = require('dom_components');
import ParserHtml from 'parser/model/ParserHtml';
import ParserCss from 'parser/model/ParserCss';
import DomComponents from 'dom_components';
module.exports = {
run() {

Loading…
Cancel
Save