UNPKG

nexshop-web-contents

Version:

Nexshop Web Contents Project

20 lines (18 loc) 622 B
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); }); }); });