This commit is contained in:
Anmol Sethi
2020-10-30 03:26:30 -04:00
parent bea185b8b2
commit 82e8a00a0d
4 changed files with 50 additions and 47 deletions

View File

@ -1,8 +1,8 @@
import { describe } from "mocha"
import { PluginAPI } from "../src/node/plugin"
import { logger } from "@coder/logger"
import * as path from "path"
import * as assert from "assert"
import { describe } from "mocha"
import * as path from "path"
import { PluginAPI } from "../src/node/plugin"
/**
* Use $LOG_LEVEL=debug to see debug logs.
@ -15,17 +15,20 @@ describe("plugin", () => {
// We remove the function fields from the application's plugins.
const apps = JSON.parse(JSON.stringify(await papi.applications()))
assert.deepEqual([
{
name: "goland",
version: "4.0.0",
iconPath: "icon.svg",
plugin: {
name: "test-plugin",
version: "1.0.0",
description: "Fake plugin for testing code-server's plugin API",
assert.deepEqual(
[
{
name: "goland",
version: "4.0.0",
iconPath: "icon.svg",
plugin: {
name: "test-plugin",
version: "1.0.0",
description: "Fake plugin for testing code-server's plugin API",
},
},
},
], apps)
],
apps,
)
})
})