MichaReiser/speedy.js

View on GitHub
packages/compiler/__integrationtests__/variable-declaration.spec.ts

Summary

Maintainability
A
55 mins
Test Coverage
async function initializedVariable() {
    "use speedyjs";

    const x = 10;
    return x;
}

describe("VariableDeclaration", () => {
    it("initializes the value with the specified initializer", async (cb) => {
        expect(await initializedVariable()).toBe(10);
        cb();
    });
});