Skip to content

Commit 962d006

Browse files
Fixed linter errors
1 parent 3d84343 commit 962d006

2 files changed

Lines changed: 7 additions & 7 deletions

File tree

test/specs/invalid/invalid.spec.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ describe("Invalid syntax", () => {
111111

112112
it("should NOT throw an error for an invalid YAML file with JSON and YAML disabled", async () => {
113113
const schema = await $RefParser
114-
.dereference({ foo: { $ref: path.rel("specs/invalid/invalid.yaml") } }, {
114+
.dereference({ foo: { $ref: path.rel("specs/invalid/invalid.yaml") }}, {
115115
parse: { yaml: false, json: false }
116116
});
117117

test/specs/parsers/parsers.spec.js

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ describe("References to non-JSON files", () => {
5050
text: false,
5151
// Parse all non-YAML files as binary
5252
binary: {
53-
canParse(file) {
53+
canParse (file) {
5454
return file.url.substr(-5) !== ".yaml";
5555
}
5656
}
@@ -97,10 +97,10 @@ describe("References to non-JSON files", () => {
9797
parse: {
9898
// A custom parser that returns the contents of ".foo" files, in reverse
9999
reverseFooParser: {
100-
canParse(file) {
100+
canParse (file) {
101101
return file.url.substr(-4) === ".foo";
102102
},
103-
parse(file) {
103+
parse (file) {
104104
return file.data.toString().split("").reverse().join("");
105105
}
106106
}
@@ -117,7 +117,7 @@ describe("References to non-JSON files", () => {
117117
// A custom parser that returns the contents of ".foo" files, in reverse
118118
reverseFooParser: {
119119
canParse: /\.FOO$/i,
120-
parse(file, callback) {
120+
parse (file, callback) {
121121
let reversed = file.data.toString().split("").reverse().join("");
122122
callback(null, reversed);
123123
}
@@ -135,7 +135,7 @@ describe("References to non-JSON files", () => {
135135
// A custom parser that returns the contents of ".foo" files, in reverse
136136
reverseFooParser: {
137137
canParse: [".foo"],
138-
parse(file) {
138+
parse (file) {
139139
return new Promise(function (resolve, reject) {
140140
let reversed = file.data.toString().split("").reverse().join("");
141141
resolve(reversed);
@@ -157,7 +157,7 @@ describe("References to non-JSON files", () => {
157157
badParser: {
158158
order: 1,
159159
canParse: /\.(md|html|css|png)$/i,
160-
parse(file, callback) {
160+
parse (file, callback) {
161161
callback("BOMB!!!");
162162
}
163163
}

0 commit comments

Comments
 (0)