Skip to content

Commit 8c514f4

Browse files
authored
fix(jelly-micro): add missing lib companion files to client*/eval/require-extensions fixtures (#1410)
* fix(jelly-micro): add missing lib companion files to client*/eval/require-extensions fixtures Fetched lib1–lib6, lib5a, lib5b from upstream Jelly (github.com/cs-au-dk/jelly/blob/master/tests/micro/) and placed each in the fixture directories that require them. Without these files the require() targets were unresolvable; while currently harmless (all affected fixtures have only anonymous/root edges so buildGraph is skipped), future manifests adding named edges would produce misleading results. Closes #1391 * fix(jelly-micro): apply biome format to lib companion fixture files Single-quote strings, 2-space indent, semicolons, trailing commas — all per the project biome.json formatter config (quoteStyle: single, indentWidth: 2, semicolons: always, trailingCommas: all).
1 parent c9ad281 commit 8c514f4

10 files changed

Lines changed: 62 additions & 0 deletions

File tree

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
module.exports.filter = (iteratee) => {
2+
return (arr) => {
3+
const res = [];
4+
for (var x of arr) {
5+
if (iteratee(x)) res.push(x);
6+
}
7+
return res;
8+
};
9+
};
10+
module.exports.obj = { foo: 17 };
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
function Arit() {}
2+
Arit.prototype.sum = (x, y) => x + y;
3+
Arit.prototype.mul = (x, y) => x * y;
4+
5+
module.exports.Arit = Arit;
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
module.exports.foo = () => {
2+
console.log('hello');
3+
};
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
module.exports.foo = () => {
2+
console.log('hello');
3+
};
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
Object.defineProperty(exports, '__esModule', { value: true });
2+
class Timer {
3+
constructor() {
4+
this.startTime = new Date();
5+
}
6+
elapsed() {
7+
return new Date().getTime() - this.startTime.getTime();
8+
}
9+
}
10+
exports.default = Timer;
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
Object.defineProperty(exports, '__esModule', {
2+
value: true,
3+
});
4+
5+
exports.default = function foo() {};
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
Object.defineProperty(exports, '__esModule', {
2+
value: true,
3+
});
4+
5+
exports.default = function bar() {};
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
console.log('Hello!');
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
module.exports.filter = (iteratee) => {
2+
return (arr) => {
3+
const res = [];
4+
for (var x of arr) {
5+
if (iteratee(x)) res.push(x);
6+
}
7+
return res;
8+
};
9+
};
10+
module.exports.obj = { foo: 17 };
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
module.exports.filter = (iteratee) => {
2+
return (arr) => {
3+
const res = [];
4+
for (var x of arr) {
5+
if (iteratee(x)) res.push(x);
6+
}
7+
return res;
8+
};
9+
};
10+
module.exports.obj = { foo: 17 };

0 commit comments

Comments
 (0)