name-db icon indicating copy to clipboard operation
name-db copied to clipboard

Create lee.json

Open leedoughty opened this issue 7 years ago • 2 comments

leedoughty avatar Dec 01 '18 13:12 leedoughty

Build failed

Hey Lee Doughty, Please read the following log in order to understand the failure reason. It'll be awesome if you fix what's wrong and commit the changes.

Node.js: 8

npm test
> [email protected] test /home/travis/build/bluzi/name-db
> mocha



  name files
    1) should contain valid JSON
    2) should contain a lowercase name, same as the filename
    3) should not have duplicate names
    4) should have ISO-639-3 language codes
    5) should have correct structure

  Translations
    6) should be lowercase

  Sex
    7) should be "m", "f" or "u"
    8) should be lowercase


  0 passing (107ms)
  8 failing

  1) name files
       should contain valid JSON:
     Error: Error in name file "madeleine.json": Invalid JSON file 
SyntaxError: Unexpected token ] in JSON at position 89
      at Context.it (test/test.js:16:23)

  2) name files
       should contain a lowercase name, same as the filename:
     SyntaxError: Unexpected token ] in JSON at position 89
      at JSON.parse (<anonymous>)
      at Context.it (test/test.js:24:31)

  3) name files
       should not have duplicate names:
     SyntaxError: Unexpected token ] in JSON at position 89
      at JSON.parse (<anonymous>)
      at Context.it (test/test.js:35:31)

  4) name files
       should have ISO-639-3 language codes:
     SyntaxError: Unexpected token ] in JSON at position 89
      at JSON.parse (<anonymous>)
      at Context.it (test/test.js:47:31)

  5) name files
       should have correct structure:
     Error: Error in name file "christian.json":
instance.translations additionalProperty "eng" exists in instance when not allowed
      at Context.it (test/test.js:106:23)

  6) Translations
       should be lowercase:

      AssertionError [ERR_ASSERTION]: "Karl" translation in "carlos.json" is not lowercase
      + expected - actual

      -Karl
      +karl
      
      at Context.it (test/test.js:121:24)

  7) Sex
       should be "m", "f" or "u":
     SyntaxError: Unexpected token ] in JSON at position 89
      at JSON.parse (<anonymous>)
      at Context.it (test/test.js:131:31)

  8) Sex
       should be lowercase:
     SyntaxError: Unexpected token ] in JSON at position 89
      at JSON.parse (<anonymous>)
      at Context.it (test/test.js:145:31)



npm ERR! Test failed.  See above for more details.

TravisBuddy avatar Dec 01 '18 13:12 TravisBuddy

Tests are failing, but unrelated with my pull request, will add a new pull request to fix tests

leedoughty avatar Dec 01 '18 13:12 leedoughty