Skip to content

Commit

Permalink
Use cardType getter in references test, making it pass again.
Browse files Browse the repository at this point in the history
Part of #673. Part of #674.
  • Loading branch information
jkomoros committed Nov 14, 2023
1 parent ee1b975 commit 2410ad7
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions test/references/test.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
/*eslint-env node*/

import {
REFERENCE_TYPE_LINK,
REFERENCE_TYPE_DUPE_OF,
REFERENCE_TYPE_ACK,
REFERENCES_INFO_CARD_PROPERTY,
REFERENCES_CARD_PROPERTY
} from '../../src/type_constants.js';
Expand All @@ -26,6 +23,14 @@ import {

import assert from 'assert';

import {
referenceType
} from '../../src/types.js';

const REFERENCE_TYPE_ACK = referenceType('ack');
const REFERENCE_TYPE_DUPE_OF = referenceType('dupe-of');
const REFERENCE_TYPE_LINK = referenceType('link');

describe('card referencesLegalShape util functions', () => {
it('missing either references and references_info not legal', async () => {
const input = {};
Expand Down

0 comments on commit 2410ad7

Please sign in to comment.