8000 It is necessary to add the missing test description parameter to the function · Issue #114 · hmpl-language/hmpl · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
It is necessary to add the missing test description parameter to the function #114
Open
@aanthonymax

Description

@aanthonymax

There are functions of type e that have a description:

  e(
    "throws an error if Memoization enabled without the Repetition mode enabled", // - this
    () =>
      compile(
        createTestObj2(
          `<button>Click</button>{{#r src="/api/test" after="click:#increment" memo=true repeat=false}}{{/r}}`
        )
      )(),
    `${REQUEST_COMPONENT_ERROR}: Memoization works in the enabled repetition mode`
  );

And some functions do not have such a description:

  aeq(
    `${aeq5}`, // - ?
    (res, prop, value) => {
      switch (prop) {
        case "response":
          if (value?.outerHTML === `<template><p>Error</p></template>`) {
            res(true);
          }
          break;
      }
    },
    {},
    {
      code: 405
    }
  );

So, we need to go through the tests and simply add support for those functions where there is no such description.

Tests folder: https://github.com/hmpl-language/hmpl/blob/main/test

Metadata

Metadata

Assignees

Labels

good first issueGood for newcomershelp wantedExtra attention is neededtestsRefers to module testsup-for-grabsExtra attention is needed

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions

    0