Skip to content

Commit 41ab002

Browse files
committed
Remove trailing whitespace
1 parent f68f368 commit 41ab002

File tree

5 files changed

+17
-17
lines changed

5 files changed

+17
-17
lines changed

index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ function convertTypes(schema, options) {
137137
if (schema.nullable === true) {
138138
schema.type = [schema.type, 'null'];
139139
}
140-
140+
141141
return schema;
142142
}
143143

test/combination_keywords.js

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ test('iterates allOfs', function(assert) {
5858
}
5959
]
6060
};
61-
61+
6262
assert.deepEqual(result, expected, 'iterated allOfs');
6363
});
6464

@@ -124,7 +124,7 @@ test('iterates anyOfs', function(assert) {
124124
}
125125
]
126126
};
127-
127+
128128
assert.deepEqual(result, expected, 'anyOfs iterated');
129129
});
130130

@@ -190,7 +190,7 @@ test('iterates oneOfs', function(assert) {
190190
}
191191
]
192192
};
193-
193+
194194
assert.deepEqual(result, expected, 'oneOfs iterated');
195195
});
196196

@@ -208,7 +208,7 @@ test('converts types in not', function(assert) {
208208
not: {
209209
type: 'string',
210210
format: 'password',
211-
minLength: 8
211+
minLength: 8
212212
}
213213
}
214214
};
@@ -222,11 +222,11 @@ test('converts types in not', function(assert) {
222222
not: {
223223
type: 'string',
224224
format: 'password',
225-
minLength: 8
225+
minLength: 8
226226
}
227227
}
228228
};
229-
229+
230230
assert.deepEqual(result, expected, 'not handled');
231231
});
232232

@@ -242,7 +242,7 @@ test('converts types in not', function(assert) {
242242
not: {
243243
type: 'string',
244244
format: 'password',
245-
minLength: 8
245+
minLength: 8
246246
}
247247
};
248248

@@ -253,10 +253,10 @@ test('converts types in not', function(assert) {
253253
not: {
254254
type: 'string',
255255
format: 'password',
256-
minLength: 8
256+
minLength: 8
257257
}
258258
};
259-
259+
260260
assert.deepEqual(result, expected, 'not handled');
261261
});
262262

@@ -349,6 +349,6 @@ test('nested combination keywords', function(assert) {
349349
}
350350
]
351351
};
352-
352+
353353
assert.deepEqual(result, expected, 'nested combination keywords');
354354
});

test/complex_schemas.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ test('complex schema', function(assert) {
1414

1515
schema = getSchema('schema-1.json');
1616
result = convert(schema);
17-
expected = getSchema('schema-1-expected.json');
17+
expected = getSchema('schema-1-expected.json');
1818

1919
assert.deepEqual(result, expected, 'converted');
2020
});
@@ -27,15 +27,15 @@ test('converting complex schema in place', function(assert) {
2727

2828
assert.plan(2);
2929

30-
schema = getSchema('schema-1.json');
30+
schema = getSchema('schema-1.json');
3131
result = convert(schema, {cloneSchema: false});
32-
expected = getSchema('schema-1-expected.json');
32+
expected = getSchema('schema-1-expected.json');
3333

3434
assert.equal(schema, result, 'changed schema in place');
3535
assert.deepEqual(result, expected, 'converted');
3636
});
3737

3838
function getSchema(file) {
3939
var path = join(__dirname, 'schemas', file);
40-
return JSON.parse(fs.readFileSync(path));
40+
return JSON.parse(fs.readFileSync(path));
4141
}

test/pattern_properties.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -449,7 +449,7 @@ test('setting custom patternProperties handler', function(assert) {
449449
return schema;
450450
}
451451
};
452-
452+
453453
result = convert(schema, options);
454454

455455
expected = {

test/unsupported_properties.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -235,7 +235,7 @@ test('remove deprecated by default', function(assert) {
235235

236236
schema = {
237237
type: 'string',
238-
deprecated: true
238+
deprecated: true
239239
};
240240

241241
result = convert(schema);

0 commit comments

Comments
 (0)