fixed closure table wrong order test

This commit is contained in:
Umed Khudoiberdiev 2016-12-07 16:58:57 +05:00
parent 0c2cda0779
commit 9de996667d

View File

@ -100,11 +100,14 @@ describe("closure-table", () => {
const c12 = new Category();
c12.name = "c12";
c1.childCategories = [c11, c12];
c1.childCategories = [c11];
await categoryRepository.persist(a1);
await categoryRepository.persist(b1);
await categoryRepository.persist(c1);
c1.childCategories.push(c12);
await categoryRepository.persist(c1);
// await categoryRepository.persist(c11);
// await categoryRepository.persist(c12);