This repository has been archived on 2026-07-19. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
espocrm-base/frontend/test/spec/test.layout-manager.js
T
Yuri Kuznetsov 99195313c5 add frontend
2014-04-11 11:44:02 +03:00

25 lines
444 B
JavaScript

var Espo = Espo || {};
describe("LayoutManager", function () {
var layoutManager;
beforeEach(function () {
layoutManager = new Espo.LayoutManager();
spyOn(layoutManager, 'ajax').andCallFake(function (options) {
});
});
it("should call ajax to fetch new layout", function () {
layoutManager.get('some', 'list');
expect(layoutManager.ajax.mostRecentCall.args[0].url).toBe('some/layout/list');
});
});