mirror of
https://github.com/wassname/talk.git
synced 2026-09-12 13:01:11 +08:00
css and standardization on all admin pages
This commit is contained in:
@@ -54,7 +54,7 @@ describe('/api/v1/auth/local', () => {
|
||||
.catch((err) => {
|
||||
expect(err).to.not.be.null;
|
||||
expect(err.response).to.have.status(401);
|
||||
expect(err.response.body).to.have.property('message', 'not authorized');
|
||||
expect(err.response.body).to.have.property('message', 'You are not authorized to perform this action.');
|
||||
});
|
||||
});
|
||||
|
||||
|
||||
@@ -29,11 +29,11 @@ describe('services.UsersService', () => {
|
||||
password: '3Coral!3'
|
||||
}]);
|
||||
|
||||
sinon.spy(MailerService, 'sendSimple');
|
||||
sinon.spy(MailerService, 'send');
|
||||
});
|
||||
|
||||
afterEach(() => {
|
||||
MailerService.sendSimple.restore();
|
||||
MailerService.send.restore();
|
||||
});
|
||||
|
||||
describe('#findById()', () => {
|
||||
@@ -160,7 +160,7 @@ describe('services.UsersService', () => {
|
||||
expect(user).to.have.property('status', 'ACTIVE');
|
||||
})
|
||||
.then(() => {
|
||||
expect(MailerService.sendSimple).to.not.have.been.called;
|
||||
expect(MailerService.send).to.not.have.been.called;
|
||||
});
|
||||
|
||||
});
|
||||
@@ -203,7 +203,7 @@ describe('services.UsersService', () => {
|
||||
expect(user).to.have.property('status', 'BANNED');
|
||||
})
|
||||
.then(() => {
|
||||
expect(MailerService.sendSimple).to.have.been.calledWithMatch({
|
||||
expect(MailerService.send).to.have.been.calledWithMatch({
|
||||
template: 'banned',
|
||||
to: mockUsers[0].profiles[0].id
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user