I want to organize my javascript tests on separate files, but these can be part of a common module. For example:
describe("Controllers", function () {
describe('Move list Controller', function () {
//ListController its
});
describe('Movie Detail Controller', function () {
describe('must activate with', function () {
//details controller its when activates
});
//other details controller's its
});
describe('Reserve Controller', function () {
// reserve controller its
});
});
I have describe('Controllers')
, and under it all controllers. But here you can see how much the files will take as each controller will have several its
. What I need is to break these tests into a file by controller
, but still keeping them as part of describe('controllers')
I tried to call the same describe
on different files and it generated redundancy:
Any idea how to separate into files without breaking describe
?