Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Need to fill out the test description #15

Open
aanthonymax opened this issue Nov 23, 2024 · 0 comments
Open

Need to fill out the test description #15

aanthonymax opened this issue Nov 23, 2024 · 0 comments
Labels
enhancement New feature or request good first issue Good for newcomers help wanted Extra attention is needed up-for-grabs Extra attention is needed

Comments

@aanthonymax
Copy link
Member

aanthonymax commented Nov 23, 2024

In tests, after the name of the it function, there are parameters, the first of which takes a string as a value. All lines must be filled in based on the nature of the test:

  e(
    "", // -> "Checks that the options object is an object" or "Option should be a object" or smth else.
    () => compile("some template", "some text" as any),
    `${COMPILE_ERROR}: Options must be an object`
  );

It is necessary to stick to approximately the same description format in tests where possible. The test files themselves are located here. It is necessary to fill in all files with the postfix .test.ts, there are about 40-50 tests without names.

The tests can be checked with the following command:

npm run test:watch

Useful links when working with tests:

https://hmpl-lang.dev/request.html#method
https://hmpl-lang.dev/examples.html

@aanthonymax aanthonymax added enhancement New feature or request good first issue Good for newcomers help wanted Extra attention is needed up-for-grabs Extra attention is needed labels Nov 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers help wanted Extra attention is needed up-for-grabs Extra attention is needed
Projects
None yet
Development

No branches or pull requests

1 participant