mirror of
https://github.com/coder/code-server.git
synced 2025-07-28 12:33:43 +08:00
Fix CI
This commit is contained in:
@ -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,
|
||||
)
|
||||
})
|
||||
})
|
||||
|
Reference in New Issue
Block a user