Commit 75789c23 authored by Piotr Gawron's avatar Piotr Gawron
Browse files

unit tes fixed

parent 14f0ec9e
......@@ -44,14 +44,14 @@ describe('GuiConnector', function () {
it('SecurityError when logged in', function () {
var connector = new (GuiConnector.constructor)();
ServerConnector.getSessionData().setLogin("testUser");
var message = connector.getErrorMessageForError(new SecurityError());
var message = connector.getErrorMessageForError(new SecurityError()).message;
assert.ok(message.indexOf("ask your administrator") >= 0);
connector.destroy();
});
it('SecurityError when not logged in', function () {
var connector = new (GuiConnector.constructor)();
ServerConnector.getSessionData().setLogin("anonymous");
var message = connector.getErrorMessageForError(new SecurityError());
var message = connector.getErrorMessageForError(new SecurityError()).message;
assert.ok(message.indexOf("to access this resource") >= 0);
connector.destroy();
});
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment