Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit a7a77ef

Browse files
committed
Clean up plain js support.
1 parent 9175554 commit a7a77ef

File tree

8 files changed

+1141
-5
lines changed

8 files changed

+1141
-5
lines changed

conformance/js/src/conformanceApi.js

Lines changed: 589 additions & 0 deletions
Large diffs are not rendered by default.

conformance/js/src/fastify/app.js

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
import { ConformanceApiService } from "../../../ts/src/conformanceApiService.js";
2+
import conformanceTestsJson from "../../../ConformanceTests.json";
3+
import { conformanceApiPlugin } from "./conformanceApiPlugin.js";
4+
5+
const options = {};
6+
7+
const app = async (fastify, opts) => {
8+
fastify.register(conformanceApiPlugin, {
9+
api: new ConformanceApiService(conformanceTestsJson.tests),
10+
});
11+
};
12+
13+
export default app;
14+
export { app, options };

0 commit comments

Comments
 (0)