Skip to content
This repository has been archived by the owner on Dec 15, 2022. It is now read-only.

Allow specs to pass on Windows #94

Merged
merged 1 commit into from
Oct 18, 2015
Merged

Allow specs to pass on Windows #94

merged 1 commit into from
Oct 18, 2015

Conversation

50Wliu
Copy link
Contributor

@50Wliu 50Wliu commented Oct 2, 2015

Simple enough 😄. The only thing left to do is an annoying issue where the dev tools will pop up with Uncaught Error: EISDIR: illegal operation on a directory, read, though I'm not sure if that happens on all platforms or not.

EDIT: Yup, that happens on all platforms. Is there any way to suppress the dev tools from popping up there?

In addition, the specs on Windows are considerably less robust since everything is testing for git.io/cats instead of the actual issue URL. Should I just force the platform to be Darwin like I did on line 508?

/cc @benogle

@@ -376,7 +379,8 @@ describe "Notifications", ->
a + 1
catch e
# Pull the file path from the stack
filePath = e.stack.split('\n')[1].match(/\(([^:]+)/)[1]
# For Windows we have to ignore the starting drive letter (eg C:\)
filePath = e.stack.split('\n')[1].match(/\(((\w:\\)[^:]+|([^:]+))/)[1]
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should I split this up into an unless/else block?

@benogle
Copy link
Contributor

benogle commented Oct 7, 2015

Seems legit. 🚢

50Wliu added a commit that referenced this pull request Oct 18, 2015
Allow specs to pass on Windows
@50Wliu 50Wliu merged commit c80e767 into master Oct 18, 2015
@50Wliu 50Wliu deleted the wl-windows-specs branch October 18, 2015 03:00
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants