mirror of
https://github.com/nestjs/nest.git
synced 2026-02-21 23:11:44 +00:00
Merge pull request #15835 from mag123c/fix/sample-34-test-resilience
fix(sample): make sample 34 test resilient to external package changes
This commit is contained in:
@@ -19,11 +19,10 @@ describe('AppController (e2e)', () => {
|
||||
return request(app.getHttpServer())
|
||||
.get('/')
|
||||
.expect(200)
|
||||
.expect(
|
||||
JSON.stringify({
|
||||
jsonString:
|
||||
'{"json":{"big":"10"},"meta":{"values":{"big":["bigint"]}}}',
|
||||
}),
|
||||
);
|
||||
.expect((res) => {
|
||||
const result = JSON.parse(res.body.jsonString);
|
||||
expect(result.json.big).toBe('10');
|
||||
expect(result.meta.values.big).toEqual(['bigint']);
|
||||
});
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user