Skip to content
This repository has been archived by the owner on Nov 28, 2022. It is now read-only.

Commit

Permalink
Fix codesample test
Browse files Browse the repository at this point in the history
  • Loading branch information
Dom Harrington committed Aug 15, 2017
1 parent f28cd93 commit 1b10eda
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions packages/api-explorer-ui/__tests__/CodeSample.test.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@ const extensions = require('readme-oas-extensions');

const CodeSample = require('../src/CodeSample');

const oas = require('./fixtures/petstore/oas');

describe('tabs', () => {
// TODO this doesnt work in readme
test('should display tabs if there are examples in the oas file');
Expand Down Expand Up @@ -90,7 +88,7 @@ describe('updating language', () => {
/>,
);

codeSample.find('.hub-lang-switch-node').simulate('click');
codeSample.find('.hub-lang-switch-node').simulate('click', { preventDefault: () => {} });
expect(setLanguage.mock.calls[0]).toEqual(['node']);
});
});

0 comments on commit 1b10eda

Please sign in to comment.