Skip to content

Commit b04a5ed

Browse files
Typescript test OneOf: added error to tests
1 parent d4984c0 commit b04a5ed

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

samples/openapi3/client/petstore/typescript/tests/one-of/test/api/DefaultApi.test.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import * as petstore from 'ts-petstore-client'
2-
import { BASE_URL } from './server';
3-
import { expect } from "chai";
2+
import {BASE_URL} from './server';
3+
import {expect} from "chai";
44

55
const server = new petstore.ServerConfiguration(BASE_URL, {})
66
const configuration = petstore.createConfiguration({
@@ -18,6 +18,6 @@ describe("Test oneOf API methods", () => {
1818

1919
it("With discriminator", async () => {
2020
const response = await DefaultApi.testDiscriminator();
21-
expect(response).to.be.instanceof(petstore.Dog);
21+
expect(response).to.be.instanceof(petstore.Cat);
2222
})
2323
})

0 commit comments

Comments
 (0)