Skip to content

Commit

Permalink
fix: renamed checklist and radio
Browse files Browse the repository at this point in the history
Closes #846
  • Loading branch information
Skaiir authored and vsgoulart committed Dec 4, 2023
1 parent cd0a0b7 commit 8233559
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 7 deletions.
4 changes: 2 additions & 2 deletions packages/form-js-editor/test/spec/core/FieldFactory.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ describe('core/FieldFactory', function() {

it('Checklist', testCreate({
type: 'checklist',
label: 'Checklist',
label: 'Checkbox group',
keyed: true,
defaults: {
values: [
Expand Down Expand Up @@ -64,7 +64,7 @@ describe('core/FieldFactory', function() {

it('Radio', testCreate({
type: 'radio',
label: 'Radio',
label: 'Radio group',
keyed: true,
defaults: {
values: [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ export default function Checklist(props) {
Checklist.config = {
type,
keyed: true,
label: 'Checklist',
label: 'Checkbox group',
group: 'selection',
emptyValue: [],
sanitizeValue: sanitizeMultiSelectValue,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ export default function Radio(props) {
Radio.config = {
type,
keyed: true,
label: 'Radio',
label: 'Radio group',
group: 'selection',
emptyValue: null,
sanitizeValue: sanitizeSingleSelectValue,
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
Expand Up @@ -292,7 +292,7 @@ describe('Checklist', function() {
// assume
const { config } = Checklist;
expect(config.type).to.eql('checklist');
expect(config.label).to.eql('Checklist');
expect(config.label).to.eql('Checkbox group');
expect(config.group).to.eql('selection');
expect(config.keyed).to.be.true;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -296,7 +296,7 @@ describe('Radio', function() {
// assume
const { config } = Radio;
expect(config.type).to.eql('radio');
expect(config.label).to.eql('Radio');
expect(config.label).to.eql('Radio group');
expect(config.group).to.eql('selection');
expect(config.keyed).to.be.true;

Expand Down

0 comments on commit 8233559

Please sign in to comment.