Browse Source

Use ES6 import in Commands tests

pull/2145/head
Artur Arseniev 7 years ago
parent
commit
d0fe2a3b7d
  1. 6
      test/specs/commands/index.js
  2. 4
      test/specs/commands/model/CommandModels.js
  3. 2
      test/specs/commands/view/CommandAbstract.js

6
test/specs/commands/index.js

@ -1,7 +1,7 @@
import Backbone from 'backbone';
var Commands = require('commands');
var Models = require('./model/CommandModels');
var CommandAbstract = require('./view/CommandAbstract');
import Commands from 'commands';
import Models from './model/CommandModels';
import CommandAbstract from './view/CommandAbstract';
describe('Commands', () => {
describe('Main', () => {

4
test/specs/commands/model/CommandModels.js

@ -1,5 +1,5 @@
const Command = require('commands/model/Command');
const Commands = require('commands');
import Command from 'commands/model/Command';
import Commands from 'commands';
module.exports = {
run() {

2
test/specs/commands/view/CommandAbstract.js

@ -1,5 +1,5 @@
import CommandAbstract from 'commands/view/CommandAbstract';
const Editor = require('editor/model/Editor');
import Editor from 'editor/model/Editor';
module.exports = {
run() {

Loading…
Cancel
Save