fand / veda

⚡VJ / Live Coding on Atom⚡

Home Page:http://veda.gl/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

convertPathForServer test fails on Windows

KoltesDigital opened this issue · comments

  × 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'

fixed in #99