import React from 'react';
import {expect} from 'chai';
import {
CREATE_SCENE,
createScene,
} from "../../src/action/scene";
describe('New Scene Spec', () => {
let action;
describe('createScene Spec', () => {
const TITLE = 'some title';
const RESOLUTION = 'some resolution';
beforeEach(() => {
action = createScene(TITLE, RESOLUTION);
});
it('return CREATE_SCENE type', () => {
expect(action.type).to.equal(CREATE_SCENE);
});
it('return title', () => {
expect(action.title).to.equal(TITLE);
});
it('return resolution', () => {
expect(action.resolution).to.equal(RESOLUTION);
});
});
}); |