v13 preparations: Adjust test cases for 'balena devices'

Change-type: patch
This commit is contained in:
Paulo Castro 2021-09-08 17:46:54 +01:00
parent d3adbcdba9
commit afb6f938b7

View File

@ -59,8 +59,9 @@ describe('balena devices', function () {
const lines = cleanOutput(out);
expect(lines[0].replace(/ +/g, ' ')).to.equal(
'ID UUID DEVICE NAME DEVICE TYPE APPLICATION NAME STATUS ' +
'IS ONLINE SUPERVISOR VERSION OS VERSION DASHBOARD URL',
isV13()
? 'ID UUID DEVICE NAME DEVICE TYPE FLEET STATUS IS ONLINE SUPERVISOR VERSION OS VERSION DASHBOARD URL'
: 'ID UUID DEVICE NAME DEVICE TYPE APPLICATION NAME STATUS IS ONLINE SUPERVISOR VERSION OS VERSION DASHBOARD URL',
);
expect(lines).to.have.lengthOf.at.least(2);