mirror of
https://github.com/Unleash/unleash.git
synced 2025-09-10 17:53:36 +02:00
fix: Updated snapshot to not include api version
This commit is contained in:
parent
7ada7dbfe3
commit
13b3a7eb8a
@ -3316,7 +3316,6 @@ exports[`should serve the OpenAPI spec 1`] = `
|
|||||||
},
|
},
|
||||||
"info": {
|
"info": {
|
||||||
"title": "Unleash API",
|
"title": "Unleash API",
|
||||||
"version": "4.15.3",
|
|
||||||
},
|
},
|
||||||
"openapi": "3.0.3",
|
"openapi": "3.0.3",
|
||||||
"paths": {
|
"paths": {
|
||||||
|
@ -32,6 +32,7 @@ test('should serve the OpenAPI spec', async () => {
|
|||||||
.expect((res) => {
|
.expect((res) => {
|
||||||
// This test will fail whenever there's a change to the API spec.
|
// This test will fail whenever there's a change to the API spec.
|
||||||
// If the change is intended, update the snapshot with `jest -u`.
|
// If the change is intended, update the snapshot with `jest -u`.
|
||||||
|
delete res.body.info.version;
|
||||||
expect(res.body).toMatchSnapshot();
|
expect(res.body).toMatchSnapshot();
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
Loading…
Reference in New Issue
Block a user