feat(spotify): implement milestone M2 auth
This commit is contained in:
@@ -71,15 +71,15 @@ test("dispatches known command with json flag", async () => {
|
||||
assert.equal(stderr.output(), "");
|
||||
});
|
||||
|
||||
test("known commands return structured placeholder errors in json mode", async () => {
|
||||
test("known unimplemented commands return structured placeholder errors in json mode", async () => {
|
||||
const stdout = createBuffer();
|
||||
const stderr = createBuffer();
|
||||
const code = await runCli(["status", "--json"], { stdout: stdout.stream, stderr: stderr.stream });
|
||||
const code = await runCli(["search", "--json"], { stdout: stdout.stream, stderr: stderr.stream });
|
||||
|
||||
assert.equal(code, 2);
|
||||
assert.deepEqual(JSON.parse(stdout.output()), {
|
||||
ok: false,
|
||||
error: "Command not implemented yet: status"
|
||||
error: "Command not implemented yet: search"
|
||||
});
|
||||
assert.equal(stderr.output(), "");
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user