import { moduleFor, test } from 'ember-qunit';

moduleFor('controller:submit', 'Unit | Controller | submit', {
  // Specify the other units that are required for this test.
  // needs: ['controller:foo']
    needs: [
        'validator:presence',
        'validator:length',
        'validator:format',
        'service:metrics'
    ],
});

// Replace this with your real tests.
test('it exists', function(assert) {
  let controller = this.subject();
  assert.ok(controller);
});

@@ -329,16 +329,798 @@
 %0A    %5D,%0A
+test('editLicense sets basicsLicense and licenseValid', function(assert) %7B%0A    const ctrl = this.subject();%0A    assert.equal(ctrl.get('basicsLicense.copyrightHolders'), null);%0A    assert.equal(ctrl.get('basicsLicense.licenseType'), null);%0A    assert.equal(ctrl.get('basicsLicense.year'), null);%0A    assert.equal(ctrl.get('licenseValid'), false);%0A    // Trigger controller action%0A    ctrl.send('editLicense', 'license', true);%0A%0A    assert.equal(ctrl.get('basicsLicense'), 'license');%0A    assert.equal(ctrl.get('licenseValid'), true);%0A%7D);%0A%0Atest('applyLicenseToggle toggles applyLicense', function(assert) %7B%0A    const ctrl = this.subject();%0A    assert.equal(ctrl.get('applyLicense'), false);%0A    ctrl.send('applyLicenseToggle', true);%0A    assert.equal(ctrl.get('applyLicense'), true);%0A
 %7D);%0A%0A// 

Add tests for some submit controller actions.