mirror of
https://github.com/apache/zeppelin
synced 2026-05-24 09:38:26 +00:00
fix test
Change-Id: Id04a3ca56b892afc2503c1807ee1dd3a5b6a03be
This commit is contained in:
parent
00ec295dce
commit
eb506ba9eb
1 changed files with 32 additions and 32 deletions
|
|
@ -38,38 +38,38 @@ describe('Factory: NoteList', function () {
|
|||
|
||||
let folderList = noteList.root.children
|
||||
expect(folderList.length).toBe(5)
|
||||
expect(folderList[0].name).toBe('A')
|
||||
expect(folderList[0].id).toBe('000001')
|
||||
expect(folderList[1].name).toBe('B')
|
||||
expect(folderList[3].name).toBe('A')
|
||||
expect(folderList[3].id).toBe('000001')
|
||||
expect(folderList[4].name).toBe('B')
|
||||
expect(folderList[2].name).toBe('000003')
|
||||
expect(folderList[3].name).toBe('C')
|
||||
expect(folderList[3].id).toBe('C')
|
||||
expect(folderList[3].children.length).toBe(3)
|
||||
expect(folderList[3].children[0].name).toBe('CA')
|
||||
expect(folderList[3].children[0].id).toBe('000004')
|
||||
expect(folderList[3].children[0].children).toBeUndefined()
|
||||
expect(folderList[3].children[1].name).toBe('CB')
|
||||
expect(folderList[3].children[1].id).toBe('000005')
|
||||
expect(folderList[3].children[1].children).toBeUndefined()
|
||||
expect(folderList[3].children[2].name).toBe('CB')
|
||||
expect(folderList[3].children[2].id).toBe('C/CB')
|
||||
expect(folderList[3].children[2].children.length).toBe(3)
|
||||
expect(folderList[3].children[2].children[0].name).toBe('CBA')
|
||||
expect(folderList[3].children[2].children[0].id).toBe('000006')
|
||||
expect(folderList[3].children[2].children[0].children).toBeUndefined()
|
||||
expect(folderList[3].children[2].children[1].name).toBe('CBA')
|
||||
expect(folderList[3].children[2].children[1].id).toBe('000007')
|
||||
expect(folderList[3].children[2].children[1].children).toBeUndefined()
|
||||
expect(folderList[3].children[2].children[2].name).toBe('CBB')
|
||||
expect(folderList[3].children[2].children[2].id).toBe('000008')
|
||||
expect(folderList[3].children[2].children[2].children).toBeUndefined()
|
||||
expect(folderList[4].name).toBe('D')
|
||||
expect(folderList[4].id).toBe('D')
|
||||
expect(folderList[4].children.length).toBe(1)
|
||||
expect(folderList[4].children[0].name).toBe('D[A')
|
||||
expect(folderList[4].children[0].id).toBe('D/D[A')
|
||||
expect(folderList[4].children[0].children[0].name).toBe('DA]B')
|
||||
expect(folderList[4].children[0].children[0].id).toBe('000009')
|
||||
expect(folderList[4].children[0].children[0].children).toBeUndefined()
|
||||
expect(folderList[0].name).toBe('C')
|
||||
expect(folderList[0].id).toBe('C')
|
||||
expect(folderList[0].children.length).toBe(3)
|
||||
expect(folderList[0].children[0].name).toBe('CA')
|
||||
expect(folderList[0].children[0].id).toBe('000004')
|
||||
expect(folderList[0].children[0].children).toBeUndefined()
|
||||
expect(folderList[0].children[1].name).toBe('CB')
|
||||
expect(folderList[0].children[1].id).toBe('000005')
|
||||
expect(folderList[0].children[1].children).toBeUndefined()
|
||||
expect(folderList[0].children[2].name).toBe('CB')
|
||||
expect(folderList[0].children[2].id).toBe('C/CB')
|
||||
expect(folderList[0].children[2].children.length).toBe(3)
|
||||
expect(folderList[0].children[2].children[0].name).toBe('CBA')
|
||||
expect(folderList[0].children[2].children[0].id).toBe('000006')
|
||||
expect(folderList[0].children[2].children[0].children).toBeUndefined()
|
||||
expect(folderList[0].children[2].children[1].name).toBe('CBA')
|
||||
expect(folderList[0].children[2].children[1].id).toBe('000007')
|
||||
expect(folderList[0].children[2].children[1].children).toBeUndefined()
|
||||
expect(folderList[0].children[2].children[2].name).toBe('CBB')
|
||||
expect(folderList[0].children[2].children[2].id).toBe('000008')
|
||||
expect(folderList[0].children[2].children[2].children).toBeUndefined()
|
||||
expect(folderList[1].name).toBe('D')
|
||||
expect(folderList[1].id).toBe('D')
|
||||
expect(folderList[1].children.length).toBe(1)
|
||||
expect(folderList[1].children[0].name).toBe('D[A')
|
||||
expect(folderList[1].children[0].id).toBe('D/D[A')
|
||||
expect(folderList[1].children[0].children[0].name).toBe('DA]B')
|
||||
expect(folderList[1].children[0].children[0].id).toBe('000009')
|
||||
expect(folderList[1].children[0].children[0].children).toBeUndefined()
|
||||
})
|
||||
})
|
||||
|
|
|
|||
Loading…
Reference in a new issue