1
0
Fork 0

Add missing test for previous commit

Oops.

* test/server/quote/ProgramQuoteCleanerTest.js: Add missing test for
  empty program.meta.
master
Mike Gerwitz 2017-07-14 15:19:35 -04:00
parent f45198a3ff
commit 1d8d382b4d
1 changed files with 6 additions and 0 deletions

View File

@ -42,6 +42,12 @@ describe( 'ProgramQuoteCleaner', () =>
fields: { foo: {}, bar: {} },
expected: { foo: [ 1 ], bar: [], baz: [ 2 ] },
},
{
label: "does nothing with no fields",
existing: { foo: [ 1 ], baz: [ 2 ] },
fields: {},
expected: { foo: [ 1 ], baz: [ 2 ] },
},
].forEach( ( { label, existing, fields, expected } ) =>
it( label, done =>
{