'use strict';

var Database          = require('dbjs')
  , defineFormSection = require('../../../model/form-section');

module.exports = function (t, a) {
	var db = new Database()
	  , FormSection = defineFormSection(db)
	  , PropertyGroupProcess = t(db)

	  , process = new PropertyGroupProcess();

	process.map._descriptorPrototype_.type = FormSection;
	process.define('applicable', { type: FormSection });

	a(process.progress, 1);
	a(process.weight, 0);

	process.map.define('test', { nested: true });
	a(process.progress, 1);
	a(process.weight, 0);
};

'use strict';

var Database          = require('dbjs')
  , defineFormSection = require('../../../model/form-section');

module.exports = function (t, a) {
	var db                   = new Database()
	  , FormSection          = defineFormSection(db)
	  , PropertyGroupProcess = t(db)

	  , process              = new PropertyGroupProcess();

	process.map._descriptorPrototype_.type = FormSection;
	process.define('applicable', { type: FormSection });

	a(process.progress, 1);
	a(process.weight, 0);

	process.map.define('test', { nested: true });
	a(process.progress, 1);
	a(process.weight, 0);

	a(process.status, undefined);
	a(process.isRejected, false);

	process.status = 'invalid';
	a(process.status, 'invalid');
	a(process.isRejected, false);

	process.rejectReason = 'test';
	a(process.isRejected, true);

	process.status = 'valid';
	a(process.isRejected, false);
};

Add tests to new PropertyGroupsProcess properties
Add tests to new PropertyGroupsProcess properties
