jsdom / tr46

An implementation of the Unicode UTS #46: Unicode IDNA Compatibility Processing.
MIT License
32 stars 14 forks source link

toAscii and Unicode tests are failing #55

Closed 0x70b1a5 closed 2 months ago

0x70b1a5 commented 3 months ago

Description

Two tests fail.

✖ failing tests:

✖ /home/../tr46/test/toascii.js (95.585125ms)
  Error [ERR_TAP_LEXER_ERROR]: Unexpected character: ‍ at line 1, column 0
      at Socket.emit (node:events:511:28) {
    code: 'ERR_TAP_LEXER_ERROR'
  }

✖ /home/../tr46/test/unicode.js (288.905067ms)
  Error [ERR_TAP_LEXER_ERROR]: Unexpected character: ̀ at line 1, column 0
      at Socket.emit (node:events:511:28) {
    code: 'ERR_TAP_LEXER_ERROR'
  }

Reproduce

  1. Clone tr46.
  2. npm run test
  3. Verify failing tests.
domenic commented 2 months ago

Cannot reproduce.

You may have forgotten to run npm install, based on your steps.

domenic commented 2 months ago

Based on searching for ERR_TAP_LEXER_ERROR on Google this may have been an issue fixed by newer Node.js versions; I suggest updating to the latest and trying again. Notice how the tests all pass on continuous integration.