Skip to content

Commit 09534d8

Browse files
committed
Fix linting issues, update .gitignore
1 parent 7939686 commit 09534d8

File tree

2 files changed

+3
-12
lines changed

2 files changed

+3
-12
lines changed

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,6 @@ node_modules/
22
typings/
33
.idea/
44
.nyc_output/
5+
.vscode/
56
npm-debug.log
67
tests/coverage

tests/unit/RequestValidator.ts

+2-12
Original file line numberDiff line numberDiff line change
@@ -206,17 +206,6 @@ describe('RequestValidator', () => {
206206
);
207207

208208
expected = undefined;
209-
const req: any = {
210-
route: {
211-
validation: {
212-
body: {
213-
id: {type: 'number', required: false, min: 0}
214-
}
215-
}
216-
}, params: {
217-
id: null
218-
}
219-
};
220209
validator.validate(
221210
{
222211
route: {
@@ -228,7 +217,8 @@ describe('RequestValidator', () => {
228217
}, params: {
229218
id: null
230219
}
231-
}, null, test
220+
},
221+
null, test
232222
);
233223
});
234224

0 commit comments

Comments
 (0)