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

getOpenSubtitlesLanguage fail with es_ES #30

Open
juanpabloaj opened this issue Jun 27, 2016 · 0 comments
Open

getOpenSubtitlesLanguage fail with es_ES #30

juanpabloaj opened this issue Jun 27, 2016 · 0 comments

Comments

@juanpabloaj
Copy link
Contributor

when I try this test

// lib/UtilsSpec.js
it('.getOpenSubtitlesLanguage() es_ES', function(done){

    var Utils = require('./Utils');

    var lang = Utils.getOpenSubtitlesLanguage('es_ES');
    expect(lang).to.be('spa');

    done();
});

and run

 $ mocha lib/UtilsSpec.js
  indexSpec
    ✓ .getOpenSubtitlesLanguage() (338ms)
    1) .getOpenSubtitlesLanguage() es_ES


  1 passing (353ms)
  1 failing

  1) indexSpec .getOpenSubtitlesLanguage() es_ES:
     Error: expected 'es_es' to equal 'spa'
      at Assertion.assert (node_modules/expect.js/index.js:96:13)
      at Assertion.be.Assertion.equal (node_modules/expect.js/index.js:216:10)
      at Assertion.(anonymous function) [as be] (node_modules/expect.js/index.js:69:24)
      at Context.<anonymous> (lib/UtilsSpec.js:32:25)
      at Context.<anonymous> (lib/UtilsSpec.js:9:9)
juanpabloaj added a commit to juanpabloaj/node-subtitler that referenced this issue Jun 27, 2016
* added test for .UTF-8 in the language string
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant