UNPKG

log-vista

Version:

This is a project which capture logs and stores in database and display on web inreal time

8 lines (7 loc) 267 B
// test/logs.test.js const request = require('supertest'); const app = require('../src/server'); test('GET /logs unauthorized', async () => { const res = await request(app).get('/logs?projectId=wrong&clientId=wrong'); expect(res.statusCode).toBe(401); });