Skip to content

Commit

Permalink
Remove spurious warning
Browse files Browse the repository at this point in the history
The hidden_fields propery is supported and should not WARN.

#377
  • Loading branch information
garethbowen committed Feb 23, 2021
1 parent 710d294 commit a5f9dff
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/lib/upload-forms.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ const insertOrReplace = require('./insert-or-replace');
const pouch = require('./db');
const warnUploadOverwrite = require('./warn-upload-overwrite');

const SUPPORTED_PROPERTIES = ['context', 'icon', 'title', 'xml2sms', 'subject_key'];
const SUPPORTED_PROPERTIES = ['context', 'icon', 'title', 'xml2sms', 'subject_key', 'hidden_fields'];

module.exports = (projectDir, subDirectory, options) => {
const db = pouch();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,6 @@
"xml2sms": "hello world",
"internalId": "different",
"subject_key": "some.translation.key",
"unknown": true
"unknown": true,
"hidden_fields": ["hidden"]
}
1 change: 1 addition & 0 deletions test/lib/upload-forms.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ describe('upload-forms', () => {
expect(form.icon).to.equal('example');
expect(form.xml2sms).to.equal('hello world');
expect(form.subject_key).to.equal('some.translation.key');
expect(form.hidden_fields[0]).to.equal('hidden');
});
});

Expand Down

0 comments on commit a5f9dff

Please sign in to comment.