Skip to content

Commit bd28869

Browse files
committed
[PortsJS] Minor cleanup of ports.js
1 parent 3c547c1 commit bd28869

File tree

1 file changed

+2
-9
lines changed

1 file changed

+2
-9
lines changed

ports-js/ports.js

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -146,12 +146,12 @@ class PortsSuite {
146146
}
147147

148148
setUp(func) {
149-
this.setUpFunctions.push = func;
149+
this.setUpFunctions.push(func);
150150
return func;
151151
}
152152

153153
tearDown(func) {
154-
this.tearDownFunctions.push = func;
154+
this.tearDownFunctions.push(func);
155155
return func;
156156
}
157157

@@ -176,10 +176,6 @@ inval
176176
});
177177
}
178178

179-
generateTestName(portsTest) {
180-
return this.evalSchemeWithArgs("(test-full-name current_test)", {current_test: portsTest});
181-
}
182-
183179
generateTestMethod(portsTest) {
184180
return () => this.runTest(portsTest);
185181
}
@@ -213,6 +209,3 @@ export function suite(fileName) {
213209
return new PortsSuite(fileName);
214210
}
215211

216-
function fixturePath(fileName) {
217-
return path.resolve('./suites', fileName);
218-
}

0 commit comments

Comments
 (0)