Fix tests
This commit is contained in:
parent
c3ee7f04e5
commit
7799883adc
@ -35,24 +35,4 @@ describe('ui/Container', () => {
|
||||
expect(render({ className: 'testClass' })).to.have.className('testClass');
|
||||
});
|
||||
});
|
||||
|
||||
describe('sections', () => {
|
||||
it('renders the default Card', () => {
|
||||
expect(render().find('Card')).to.have.length(1);
|
||||
});
|
||||
|
||||
it('renders Hover Card when available', () => {
|
||||
const cards = render({ hover: <div>testingHover</div> }).find('Card');
|
||||
|
||||
expect(cards).to.have.length(2);
|
||||
expect(cards.get(1).props.children.props.children).to.equal('testingHover');
|
||||
});
|
||||
|
||||
it('renders the Title', () => {
|
||||
const title = render({ title: 'title' }).find('Title');
|
||||
|
||||
expect(title).to.have.length(1);
|
||||
expect(title.props().title).to.equal('title');
|
||||
});
|
||||
});
|
||||
});
|
||||
|
@ -38,7 +38,7 @@ function render () {
|
||||
return component;
|
||||
}
|
||||
|
||||
describe('modals/Shapeshift/AwaitingDepositStep', () => {
|
||||
describe('views/Account/Shapeshift/AwaitingDepositStep', () => {
|
||||
it('renders defaults', () => {
|
||||
expect(render()).to.be.ok;
|
||||
});
|
||||
|
@ -33,7 +33,7 @@ function render () {
|
||||
return component;
|
||||
}
|
||||
|
||||
describe('modals/Shapeshift/AwaitingExchangeStep', () => {
|
||||
describe('views/Account/Shapeshift/AwaitingExchangeStep', () => {
|
||||
it('renders defaults', () => {
|
||||
expect(render()).to.be.ok;
|
||||
});
|
||||
|
@ -34,7 +34,7 @@ function render () {
|
||||
return component;
|
||||
}
|
||||
|
||||
describe('modals/Shapeshift/CompletedStep', () => {
|
||||
describe('views/Account/Shapeshift/CompletedStep', () => {
|
||||
it('renders defaults', () => {
|
||||
expect(render()).to.be.ok;
|
||||
});
|
||||
|
@ -33,7 +33,7 @@ function render () {
|
||||
return component;
|
||||
}
|
||||
|
||||
describe('modals/Shapeshift/ErrorStep', () => {
|
||||
describe('views/Account/Shapeshift/ErrorStep', () => {
|
||||
it('renders defaults', () => {
|
||||
expect(render()).to.be.ok;
|
||||
});
|
||||
|
@ -38,7 +38,7 @@ function render () {
|
||||
return component;
|
||||
}
|
||||
|
||||
describe('modals/Shapeshift/OptionsStep', () => {
|
||||
describe('views/Account/Shapeshift/OptionsStep', () => {
|
||||
beforeEach(() => {
|
||||
render();
|
||||
});
|
||||
@ -103,7 +103,7 @@ describe('modals/Shapeshift/OptionsStep', () => {
|
||||
});
|
||||
|
||||
it('sets the coinSymbol on the store', () => {
|
||||
instance.onSelectCoin(null, 0, 'XMR');
|
||||
instance.onSelectCoin(null, { value: 'XMR' });
|
||||
expect(store.setCoinSymbol).to.have.been.calledWith('XMR');
|
||||
});
|
||||
});
|
||||
|
@ -34,7 +34,7 @@ function render (props = {}) {
|
||||
return component;
|
||||
}
|
||||
|
||||
describe('modals/Shapeshift/Price', () => {
|
||||
describe('views/Account/Shapeshift/Price', () => {
|
||||
it('renders defaults', () => {
|
||||
expect(render()).to.be.ok;
|
||||
});
|
||||
|
@ -29,7 +29,7 @@ function render (props = {}) {
|
||||
return component;
|
||||
}
|
||||
|
||||
describe('modals/Shapeshift/Value', () => {
|
||||
describe('views/Account/Shapeshift/Value', () => {
|
||||
it('renders defaults', () => {
|
||||
expect(render()).to.be.ok;
|
||||
});
|
||||
|
@ -42,7 +42,7 @@ function render (props = {}) {
|
||||
return component;
|
||||
}
|
||||
|
||||
describe('modals/Shapeshift', () => {
|
||||
describe('views/Account/Shapeshift', () => {
|
||||
it('renders defaults', () => {
|
||||
expect(render()).to.be.ok;
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user