All files / nexshop-web-contents/spec/action floating-view-spec.js

100% Statements 10/10
100% Branches 0/0
100% Functions 5/5
100% Lines 10/10
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 201x 1x 1x         1x 1x 1x 1x       1x 1x 1x      
import React from 'react';
import {expect} from 'chai';
import {
    CLOSE_FLOATING_VIEW, closeFloatingView,
    OPEN_FLOATING_VIEW, openFloatingView
} from "../../src/action/floating-view";
 
describe('Floating View Action Spec', () => {
    describe('openFloatingView', () => {
        it('has type as OPEN_FLOATING_VIEW', () => {
            expect(openFloatingView().type).to.equal(OPEN_FLOATING_VIEW);
        });
    });
 
    describe('closeFloatingView', () => {
        it('has type as CLOSE_FLOATING_VIEW', () => {
            expect(closeFloatingView().type).to.equal(CLOSE_FLOATING_VIEW);
        });
    });
});