Skip to content

Commit

Permalink
chore(core-cli): remove deprecated versioning channels (#4183)
Browse files Browse the repository at this point in the history
  • Loading branch information
sebastijankuzner authored Nov 20, 2020
1 parent 118c4d4 commit 26da8d8
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
10 changes: 10 additions & 0 deletions __tests__/unit/core-cli/services/config.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -97,4 +97,14 @@ describe("Config", () => {
expect(config.get("plugins")).toEqual([]);
});
});

describe("#getRegistryChannel", () => {
it("should return latest", () => {
expect(config.getRegistryChannel("3.0.0")).toEqual("latest");
});

it("should return next", () => {
expect(config.getRegistryChannel("3.0.0-next.9")).toEqual("next");
});
});
});
2 changes: 1 addition & 1 deletion packages/core-cli/src/services/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ export class Config {
* @memberof Config
*/
private getRegistryChannel(version: string): string {
const channels: string[] = ["alpha", "beta", "rc", "next"];
const channels: string[] = ["next"];

let channel = "latest";
for (const item of channels) {
Expand Down

0 comments on commit 26da8d8

Please sign in to comment.