Skip to content

Commit 13dbb45

Browse files
committed
update test
1 parent b310407 commit 13dbb45

File tree

4 files changed

+21
-11
lines changed

4 files changed

+21
-11
lines changed

.eslintrc

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,5 +43,15 @@
4343
"camelcase": 1,
4444
"new-cap": 1,
4545
"no-restricted-globals": 1
46-
}
46+
},
47+
"overrides": [
48+
{
49+
"files": ["*-spec.js"],
50+
"rules": {
51+
"no-undef": 0,
52+
"indent": 0,
53+
"newline-per-chained-call": 0
54+
}
55+
}
56+
]
4757
}

test/runtime/component-spec.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -306,7 +306,7 @@ describe('a System Runtime component', function () {
306306
const yoda = new Person({
307307
'firstName': 'Yoda',
308308
'lastName': 'Master'
309-
})
309+
});
310310

311311
yoda.on('lastName', function (val) {
312312
this.address('Dagobah');
@@ -325,7 +325,7 @@ describe('a System Runtime component', function () {
325325
const yoda = new Person({
326326
'firstName': 'Yoda',
327327
'lastName': 'Master'
328-
})
328+
});
329329

330330
yoda.on('lastName', function (val) {
331331
this.address('Dagobah');
@@ -365,7 +365,7 @@ describe('a System Runtime component', function () {
365365
const yoda = new Person({
366366
'firstName': 'Yoda',
367367
'lastName': 'Master'
368-
})
368+
});
369369

370370
yoda.on('custom.property0', function (val) {
371371
this.custom().property3('changed');
@@ -387,7 +387,7 @@ describe('a System Runtime component', function () {
387387
'firstName': 'Yoda',
388388
'lastName': 'Master',
389389
'location': {
390-
'cities': [{ 'street': '' }]
390+
'cities': [{'street': ''}]
391391
}
392392
});
393393

@@ -409,7 +409,7 @@ describe('a System Runtime component', function () {
409409
'firstName': 'Yoda',
410410
'lastName': 'Master',
411411
'location': {
412-
'cities': [{ 'street': '' }]
412+
'cities': [{'street': ''}]
413413
}
414414
});
415415

test/runtime/metamodel-spec.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ describe('System Runtime metamodel component', () => {
8585
'name': 'address',
8686
'type': 'object',
8787
'schema': {
88-
'planet': { 'type': 'string', 'mandatory': true }
88+
'planet': {'type': 'string', 'mandatory': true}
8989
}
9090
});
9191

@@ -194,7 +194,7 @@ describe('System Runtime metamodel component', () => {
194194
'name': 'vegetable',
195195
'type': 'object',
196196
'schema': {
197-
'kind': { 'type': ['string'], 'mandatory': true }
197+
'kind': {'type': ['string'], 'mandatory': true}
198198
}
199199
});
200200

@@ -252,15 +252,15 @@ describe('System Runtime metamodel component', () => {
252252
'name': 'foods',
253253
'type': 'object',
254254
'schema': {
255-
'vegetables': { 'type': 'vegetable', 'mandatory': true }
255+
'vegetables': {'type': 'vegetable', 'mandatory': true}
256256
}
257257
});
258258

259259
metamodel.type({
260260
'name': 'vegetable',
261261
'type': 'object',
262262
'schema': {
263-
'kind': { 'type': ['string'], 'mandatory': true }
263+
'kind': {'type': ['string'], 'mandatory': true}
264264
}
265265
});
266266

test/runtime/mson-spec.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ describe('a MSON schema', () => {
1919

2020
metamodel.schema({
2121
'_name': 'Teacher_test',
22-
'_inherit': ['Person_test'],
22+
'_inherit': ['Person_test']
2323
});
2424

2525
metamodel.create();

0 commit comments

Comments
 (0)