fand / veda

⚡VJ / Live Coding on Atom⚡
http://veda.gl/
MIT License
509 stars 34 forks source link

convertPathForServer test fails on Windows #97

Closed KoltesDigital closed 6 years ago

KoltesDigital commented 6 years ago
  × utils » convertPathForServer
  √ config » createRc returns DEFAULT_RC by default
  √ config » setFileSettings changes Config
  √ config » setProjectSettings changes Config
  √ config » setGlobalSettings changes Config
  √ config » setFileSettings > setProjectSettings > setGlobalSettings
  √ config » setFileSettings returns diffs and newConfig
  √ config » rc and soundRc is isolated
  √ config » setFileSettingsByString works the same as setFileSettings
  √ config » setSoundSettingsByString works the same as setSoundSettings

  1 test failed

  utils » convertPathForServer

  C:\Projects\veda\test\utils.js:8

   7:     t.is(convertPathForServer('/foo/bar', 3000, 'baz'), 'http://localhost:3000/link/baz');
>  8:     t.is(convertPathForServer('/foo/bar', 3000, 'baz/qux'), 'http://localhost:3000/link/baz/qux');
   9:     t.is(convertPathForServer('/foo/bar', 3000, 'baz/././qux/'), 'http://localhost:3000/link/baz/qux');

  Difference:

  - 'http://localhost:3000/link/baz\\qux'
  + 'http://localhost:3000/link/baz/qux'
fand commented 6 years ago

fixed in https://github.com/fand/veda/pull/99