All files / nexshop-web-contents/spec/action scene-spec.js

100% Statements 15/15
100% Branches 0/0
100% Functions 6/6
100% Lines 15/15
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 311x 1x 1x         1x     1x 1x 1x   1x 3x     1x 1x     1x 1x     1x 1x      
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);
        });
    });
});