Skip to content

Commit

Permalink
Add test for ItemSortBy enum
Browse files Browse the repository at this point in the history
  • Loading branch information
thornbill committed Jul 15, 2022
1 parent b945687 commit aabd6ee
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions src/models/api/__tests__/index.test.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
/**
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
*/

import { ItemSortBy } from '../index';

/**
* Api model tests.
* NOTE: This is a really dumb case where because of the way TypeScript enums are generated in JavaScript we need to
* interact with the enum in a test (either directly or indirectly) for the file to be considered covered.
*
* @group unit/models/api
*/
describe('ItemSortBy', () => {
it('should exist', () => {
expect(ItemSortBy).toBeDefined();
});
});

0 comments on commit aabd6ee

Please sign in to comment.