Browse Source

Use ES6 import in DomComponents tests

pull/2145/head
Artur Arseniev 7 years ago
parent
commit
fcebc952d8
  1. 18
      test/specs/dom_components/index.js
  2. 20
      test/specs/dom_components/model/Component.js
  3. 4
      test/specs/dom_components/view/ComponentImageView.js
  4. 4
      test/specs/dom_components/view/ComponentTextView.js
  5. 8
      test/specs/dom_components/view/ComponentV.js
  6. 6
      test/specs/dom_components/view/ComponentsView.js

18
test/specs/dom_components/index.js

@ -1,12 +1,12 @@
const DomComponents = require('dom_components'); import DomComponents from 'dom_components';
const Components = require('dom_components/model/Components'); import Components from 'dom_components/model/Components';
const ComponentModels = require('./model/Component'); import ComponentModels from './model/Component';
const ComponentView = require('./view/ComponentV'); import ComponentView from './view/ComponentV';
const ComponentsView = require('./view/ComponentsView'); import ComponentsView from './view/ComponentsView';
const ComponentTextView = require('./view/ComponentTextView'); import ComponentTextView from './view/ComponentTextView';
const ComponentImageView = require('./view/ComponentImageView'); import ComponentImageView from './view/ComponentImageView';
const Editor = require('editor/model/Editor'); import Editor from 'editor/model/Editor';
const utils = require('./../test_utils.js'); import utils from './../test_utils.js';
describe('DOM Components', () => { describe('DOM Components', () => {
describe('Main', () => { describe('Main', () => {

20
test/specs/dom_components/model/Component.js

@ -1,14 +1,14 @@
import Backbone from 'backbone'; import Backbone from 'backbone';
const DomComponents = require('dom_components'); import DomComponents from 'dom_components';
const Component = require('dom_components/model/Component'); import Component from 'dom_components/model/Component';
const ComponentImage = require('dom_components/model/ComponentImage'); import ComponentImage from 'dom_components/model/ComponentImage';
const ComponentText = require('dom_components/model/ComponentText'); import ComponentText from 'dom_components/model/ComponentText';
const ComponentLink = require('dom_components/model/ComponentLink'); import ComponentLink from 'dom_components/model/ComponentLink';
const ComponentMap = require('dom_components/model/ComponentMap'); import ComponentMap from 'dom_components/model/ComponentMap';
const ComponentVideo = require('dom_components/model/ComponentVideo'); import ComponentVideo from 'dom_components/model/ComponentVideo';
const Components = require('dom_components/model/Components'); import Components from 'dom_components/model/Components';
const Selector = require('selector_manager/model/Selector'); import Selector from 'selector_manager/model/Selector';
const Editor = require('editor/model/Editor'); import Editor from 'editor/model/Editor';
const $ = Backbone.$; const $ = Backbone.$;
module.exports = { module.exports = {

4
test/specs/dom_components/view/ComponentImageView.js

@ -1,5 +1,5 @@
const ComponentImageView = require('dom_components/view/ComponentImageView'); import ComponentImageView from 'dom_components/view/ComponentImageView';
const Component = require('dom_components/model/ComponentImage'); import Component from 'dom_components/model/ComponentImage';
module.exports = { module.exports = {
run() { run() {

4
test/specs/dom_components/view/ComponentTextView.js

@ -1,5 +1,5 @@
const ComponentTextView = require('dom_components/view/ComponentTextView'); import ComponentTextView from 'dom_components/view/ComponentTextView';
const Component = require('dom_components/model/Component'); import Component from 'dom_components/model/Component';
module.exports = { module.exports = {
run() { run() {

8
test/specs/dom_components/view/ComponentV.js

@ -1,7 +1,7 @@
const ComponentView = require('dom_components/view/ComponentView'); import ComponentView from 'dom_components/view/ComponentView';
const Component = require('dom_components/model/Component'); import Component from 'dom_components/model/Component';
const DomComponents = require('dom_components'); import DomComponents from 'dom_components';
const Editor = require('editor/model/Editor'); import Editor from 'editor/model/Editor';
module.exports = { module.exports = {
run() { run() {

6
test/specs/dom_components/view/ComponentsView.js

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

Loading…
Cancel
Save