mirror of
https://github.com/Termix-SSH/Termix.git
synced 2026-10-30 15:15:24 +00:00
feat: redesign user host defaults system
This commit is contained in:
1 parent
3028ab1176
commit
a4a4d4f27b
144 files changed
+24609
-2555
No files matched your search
@@ -35,19 +35,6 @@ describe("permissions", () => {
|
||||
);
|
||||
});
|
||||
|
||||
describe("defaults", () => {
|
||||
it("tells any user whether new hosts start with metrics on", async () => {
|
||||
server = await startServer();
|
||||
expect((await server.request("GET", "/defaults")).body).toEqual({
|
||||
enabledForNewHosts: true,
|
||||
});
|
||||
await server.mock.ctx.settings.set("enabledForNewHosts", false);
|
||||
expect((await server.request("GET", "/defaults")).body).toEqual({
|
||||
enabledForNewHosts: false,
|
||||
});
|
||||
});
|
||||
});
|
||||
|
||||
describe("metrics", () => {
|
||||
it("answers 404 until a sample exists", async () => {
|
||||
server = await startServer();
|
||||
|
||||
Reference in new issue
Block a user