Skip to content

Commit fa428f8

Browse files
committed
clean code
1 parent ef971a4 commit fa428f8

File tree

4 files changed

+9
-9
lines changed

4 files changed

+9
-9
lines changed

src/mson.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,8 +42,8 @@ exports.INTERNAL_NAMES = [
4242
];
4343

4444
exports.PROPERTY_TYPE = 'property';
45-
exports.LINK_TYPE = 'link';
4645
exports.COLLECTION_TYPE = 'collection';
46+
exports.LINK_TYPE = 'link';
4747
exports.METHOD_TYPE = 'method';
4848
exports.EVENT_TYPE = 'event';
4949

test/runtime/component-spec.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -209,7 +209,7 @@ describe('a System Runtime component', function () {
209209
}, 1);
210210
});
211211

212-
it('can add an event with context change', function (done) {
212+
it('can add an event on a new context', function (done) {
213213
const Person = runtime.require('Person');
214214
const yoda = new Person({
215215
'firstName': 'Yoda',

test/runtime/metamodel-spec.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ describe('System Runtime metamodel component', () => {
3636
expect(metamodel.require('PersonTest')).to.not.be.undefined;
3737
});
3838

39-
it('can add a schema (simple mode)', () => {
39+
it('can update a generated model (simple mode)', () => {
4040
const metamodel = runtime.require('metamodel');
4141
metamodel.schema('PersonTestSimple', {
4242
'firstName': 'property'
@@ -51,7 +51,7 @@ describe('System Runtime metamodel component', () => {
5151
expect(metamodel.require('PersonTestSimple')).to.not.be.undefined;
5252
});
5353

54-
it('can add a method (simple mode)', () => {
54+
it('can update a method signature (simple mode)', () => {
5555
const metamodel = runtime.require('metamodel');
5656
metamodel.schema('MethodTest', {
5757
'add': 'method'
@@ -385,7 +385,7 @@ describe('System Runtime metamodel component', () => {
385385
});
386386

387387

388-
it('can can create a one to many relationship', () => {
388+
it('can create a one to many relationship', () => {
389389
const metamodel = runtime.require('metamodel');
390390

391391
metamodel.schema({
@@ -469,7 +469,7 @@ describe('System Runtime metamodel component', () => {
469469
});
470470

471471

472-
it('can create navigation threw model', () => {
472+
it('can generate APIs to navigate threw the model', () => {
473473
const metamodel = runtime.require('metamodel');
474474

475475
metamodel.schema({

test/runtime/runtime-spec.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,13 +28,13 @@ describe('System Runtime runtime component', () => {
2828
expect(bundle).to.not.be.undefined;
2929
});
3030

31-
it('can get the status of all installed systems', () => {
31+
it('can get the status of all installed bundles', () => {
3232
const status = runtime.status();
3333

3434
expect(status).to.not.be.undefined;
3535
});
3636

37-
it('can install a system', () => {
37+
it('can install a bundle', () => {
3838
const systemId = runtime.install({
3939
"name": "Test",
4040
"master": true,
@@ -99,7 +99,7 @@ describe('System Runtime runtime component', () => {
9999
expect(systemId).equal('k16d101760d1ec2a');
100100
});
101101

102-
it('can uninstall a system', () => {
102+
it('can uninstall a bundle', () => {
103103
runtime.uninstall('k16d101760d1ec2a');
104104
const state = runtime.require('k16d101760d1ec2a').state();
105105

0 commit comments

Comments
 (0)