Skip to content

Commit 11a94a6

Browse files
committed
test: Fixed a test
1 parent 641559f commit 11a94a6

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

packages/nest-utils/src/testing/supertest/supertest.test.ts

+3-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,9 @@ describe('Supertest', () => {
1616
const container = await TestContainer.create({ controllers: [MyController], enableEndToEnd: true });
1717
app = container.app;
1818
const supertest = new Supertest(app);
19-
await supertest.get('/hello').expect(200).expect('Hello World!');
19+
const response = await supertest.get('/hello');
20+
expect(response.status).toBe(200);
21+
expect(response.text).toBe('Hello World!');
2022
});
2123
});
2224
});

0 commit comments

Comments
 (0)