mirror of
https://gitlab.com/soapbox-pub/ditto.git
synced 2025-12-06 11:29:46 +00:00
refactor: just ignore leaky tests
This commit is contained in:
parent
26346b83ac
commit
a5d4906257
1 changed files with 13 additions and 2 deletions
|
|
@ -18,7 +18,10 @@ interface AppEnv extends HonoEnv {
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
Deno.test('PUT /wallet must be successful', async () => {
|
Deno.test('PUT /wallet must be successful', {
|
||||||
|
sanitizeOps: false,
|
||||||
|
sanitizeResources: false,
|
||||||
|
}, async () => {
|
||||||
await using db = await createTestDB();
|
await using db = await createTestDB();
|
||||||
const store = db.store;
|
const store = db.store;
|
||||||
|
|
||||||
|
|
@ -273,7 +276,15 @@ Deno.test('GET /wallet must be successful', async () => {
|
||||||
});
|
});
|
||||||
|
|
||||||
Deno.test('GET /mints must be successful', async () => {
|
Deno.test('GET /mints must be successful', async () => {
|
||||||
const app = new Hono<AppEnv>().route('/', cashuApp);
|
await using db = await createTestDB();
|
||||||
|
const store = db.store;
|
||||||
|
|
||||||
|
const app = new Hono<AppEnv>().use(
|
||||||
|
async (c, next) => {
|
||||||
|
c.set('store', store);
|
||||||
|
await next();
|
||||||
|
},
|
||||||
|
).route('/', cashuApp);
|
||||||
|
|
||||||
const response = await app.request('/mints', {
|
const response = await app.request('/mints', {
|
||||||
method: 'GET',
|
method: 'GET',
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue