Commit 1764ada3 authored by Dmytro Antonenko's avatar Dmytro Antonenko

- Update unit tests for ~/src/core/application.js

parent 4861a572
Pipeline #17628047 passed with stages
in 15 minutes 48 seconds
......@@ -171,7 +171,8 @@ TestApplication.prototype.init = function() {
this.addApplicationFilter(appFilter2, 1);
// -- Register action filters -- //
this.addActionFilter(new TestActionFilter('Action filter 1'), undefined, 2);
this.addActionFilter(
new TestActionFilter('Action filter 1'), '{!}{/test/index}', 2);
this.addActionFilter(new TestActionFilter('Action filter 2'), undefined, 1);
};
......@@ -216,13 +217,9 @@ describe('Test app.core.Application', () => {
expect(testContainer.childNodes[11].textContent)
.toEqual('Action filter 2 => onActionExecuting');
expect(testContainer.childNodes[12].textContent)
.toEqual('Action filter 1 => onActionExecuting');
expect(testContainer.childNodes[13].textContent)
.toEqual('testError action');
expect(testContainer.childNodes[14].textContent)
expect(testContainer.childNodes[13].textContent)
.toEqual('Action filter 2 => onException; Error message:Whooops!');
expect(testContainer.childNodes[15].textContent)
.toEqual('Action filter 1 => onException; Error message:Whooops!');
});
it('Action does not exist error', function () {
......
Markdown is supported
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