mirror of
https://github.com/espocrm/espocrm.git
synced 2026-07-01 08:26:04 +00:00
24 lines
473 B
JavaScript
24 lines
473 B
JavaScript
var Espo = Espo || {};
|
|
|
|
describe("Loader", function () {
|
|
var loader;
|
|
|
|
beforeEach(function () {
|
|
loader = new Espo.Loader();
|
|
Espo.Testing = 'test';
|
|
});
|
|
|
|
afterEach(function () {
|
|
delete Espo.Testing;
|
|
});
|
|
|
|
|
|
|
|
it("should convert name to path", function () {
|
|
expect(loader._nameToPath('Views.Record.Edit')).toBe('src/views/record/edit.js');
|
|
expect(loader._nameToPath('Views.Home.DashletHeader')).toBe('src/views/home/dashlet-header.js');
|
|
});
|
|
|
|
|
|
});
|