Add deprioritized device group
This commit is contained in:
@@ -75,7 +75,7 @@ test('device route forwards list and refresh query paths as raw JSON responses',
|
||||
});
|
||||
|
||||
test('device route forwards metadata patch and policy arguments without coercion', async () => {
|
||||
const patch = { expectedRevision: 7, alias: 'Desk', pinned: false, extra: 0 };
|
||||
const patch = { expectedRevision: 7, alias: 'Desk', pinned: false, deprioritized: true, extra: 0 };
|
||||
const metadata = createHarness({ body: patch });
|
||||
const metadataResponse = response();
|
||||
assert.equal(await metadata.route.handle({
|
||||
@@ -85,7 +85,7 @@ test('device route forwards metadata patch and policy arguments without coercion
|
||||
assert.deepEqual(metadata.calls, [[
|
||||
'update',
|
||||
deviceId,
|
||||
{ alias: 'Desk', pinned: false, extra: 0 },
|
||||
{ alias: 'Desk', pinned: false, deprioritized: true, extra: 0 },
|
||||
7,
|
||||
]]);
|
||||
assert.deepEqual(metadataResponse.payload, { revision: 3 });
|
||||
|
||||
Reference in New Issue
Block a user