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 c164b1a50e
commit e15f138bd6

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))