feat: 更新版本号和依赖项,添加获取工作空间 Cookie 的功能,新增测试用例
This commit is contained in:
11
test/keep-cookie-get.ts
Normal file
11
test/keep-cookie-get.ts
Normal file
@@ -0,0 +1,11 @@
|
||||
// https://cnb.cool/kevisual/dev-env/-/workspace/vscode-web/cnb-708-1ji9sog7o-001
|
||||
import { Build } from "../src/index.ts";
|
||||
|
||||
import { cnb, showMore } from "./common.ts";
|
||||
|
||||
const repo = 'kevisual/dev-env';
|
||||
const pipelineId = 'cnb-708-1ji9sog7o-001';
|
||||
|
||||
const res = await cnb.workspace.getWorkspaceCookie(repo, pipelineId);
|
||||
|
||||
console.log('token', showMore(res));
|
||||
Reference in New Issue
Block a user