Skip to content

Commit 05a8e0c

Browse files
committed
fix(rest): fix assertion broken by new deps versions
Update the expected YAML version of OpenAPI spec generated by the server to match the output of the current version of the libraries we use under the hood.
1 parent c81c0ac commit 05a8e0c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/rest/test/integration/rest-server.integration.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -155,8 +155,6 @@ paths:
155155
'/openapi.yaml',
156156
);
157157
expect(response.text).to.eql(`openapi: 3.0.0
158-
servers:
159-
- url: /
160158
info:
161159
title: LoopBack Application
162160
version: 1.0.0
@@ -170,6 +168,8 @@ paths:
170168
'*/*':
171169
schema:
172170
type: string
171+
servers:
172+
- url: /
173173
`);
174174
expect(response.get('Access-Control-Allow-Origin')).to.equal('*');
175175
expect(response.get('Access-Control-Allow-Credentials')).to.equal('true');

0 commit comments

Comments
 (0)