Remove old tests as notifications work in a fundamentally different way

pull/261/head
Will Piers 2016-10-20 13:22:29 -07:00
parent 0ba6880c43
commit ff4ba78b24
1 changed files with 0 additions and 23 deletions

View File

@ -171,29 +171,6 @@ describe('Roles page', function() {
expect(wrapper.find('.roles .panel').at(startingRolesLen).text()).to.match(/new role/);
}, done);
});
it('renders a success notification', function(done) {
this.fakes.stub(api, 'createRole').returns(Promise.resolve({data: {}}));
const wrapper = setup();
submitRoleForm(wrapper, 'new role');
then(() => {
expect(wrapper.find('.alert-success').length).to.equal(1);
}, done);
});
describe('and the request fails', function() {
it('renders an error notification', function(done) {
this.fakes.stub(api, 'createRole').returns(Promise.reject({error: "Role name already exists."}));
const wrapper = setup();
submitRoleForm(wrapper, 'new role');
then(() => {
expect(wrapper.find('.alert-danger').length).to.equal(1);
}, done);
});
});
});
});
/* eslint-enable */