mirror of
https://github.com/reduxjs/redux-devtools.git
synced 2024-11-24 10:33:58 +03:00
bbb1a40395
* react-base16-styling * Use inline react-base16-styling themes * Fix * Format * Fix * Fixes * Transform more * react-json-tree * Update lock * Remove unnecessary * react-dock * Move to dep * Lock * Fix * Fix * Create tame-eagles-relax.md
24 lines
598 B
TypeScript
24 lines
598 B
TypeScript
import React from 'react';
|
|
import TestRenderer from 'react-test-renderer/shallow';
|
|
import Dock from '../src/Dock.js';
|
|
|
|
describe('Dock component', function () {
|
|
it('should have shallow rendering', function () {
|
|
const renderer = TestRenderer.createRenderer();
|
|
const DockEl = <Dock />;
|
|
renderer.render(DockEl);
|
|
|
|
const result = renderer.getRenderOutput();
|
|
|
|
expect(DockEl.props).toEqual({
|
|
position: 'left',
|
|
zIndex: 99999999,
|
|
fluid: true,
|
|
defaultSize: 0.3,
|
|
dimMode: 'opaque',
|
|
duration: 200,
|
|
});
|
|
expect(result.type).toBe('div');
|
|
});
|
|
});
|