elsaland / elsa

❄️ Elsa is a minimal runtime for JavaScript and TypeScript written in Go
MIT License
2.8k stars 62 forks source link

Add tests to `testing/` and `std/` with Elsa.tests #89

Open littledivy opened 4 years ago

littledivy commented 4 years ago

Add tests for all the js/ts files inside testing/ and std/

The test file *should be named in the pattern `_test.js`** for elsa to identify it as a test file.

Example:

// some_test.js
import { eq } from "./utils.ts";

Elsa.tests({
  "test mode == `test`": function () {
    eq(Elsa.mode, "test");
  },
});

and run ./elsa test

Marking as a good first issue as anyone with Deno.test experience can give it a try :smile:

sidntrivedi012 commented 4 years ago

Hey @littledivy, is this issue resolved? If not, would like to give it a go. Thanks :)

littledivy commented 4 years ago

tests for testing/ have been added. std tests are pending - feel free to give it a try