fix(sample): make sample 34 test resilient to external package changes

This commit is contained in:
mag123c
2025-10-24 21:35:36 +09:00
parent b4c2fb24ae
commit afdb2e85de

View File

@@ -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']);
});
});
});