tests: fix test session (no root or tab widget in tab)

This commit is contained in:
jean-emmanuel 2018-11-06 08:32:48 +01:00
parent 6601d9f3c4
commit e80e6c74f7

View file

@ -10,7 +10,10 @@ require('../scripts/client-shim')
var {widgets} = require('../src/client/app/widgets')
for (let type in widgets) {
session.tabs[0].widgets.push({type: type})
if (type !== 'tab' && type !== 'root') {
console.log(type)
session.tabs[0].widgets.push({type: type})
}
}
fs.writeFileSync(sessionPath, JSON.stringify(session))