Skip to content

Changes write to export. #4

Closed
wants to merge 1 commit into from

2 participants

@sirkitree

Exports after every save.
Export uses path and defaults to /data/todo.txt

@sirkitree sirkitree Changes write to export.
Exports after every save.
Export uses path and defaults to /data/todo.txt
731111e
@sirkitree

I'll see if i can throw in some tests now.

@vesln
Owner
vesln commented Feb 4, 2012

Thanks, man. I really appreciate it.

@sirkitree

So, I'll admit, I'm struggling here with the test. I can't seem to find a sine command for testing file creation. Can you give me a little direction on what exactly you think this should test? I've not gotten very far :( https://gist.github.com/1747985

@vesln
Owner
vesln commented Feb 5, 2012

https://github.com/vesln/box/blob/master/test/storage.test.js#L85 This test is pretty similar. I hope it will give you some directions.

@sirkitree

Thanks that helped, and I'm close I think.

https://gist.github.com/1747985

However I'm still getting an error about the file not existing:
error

It seems I need to able to add in the file path as the argument to the .stub() but I'm not quite sure how. I tried using stub.withArgs() with no success.

Any more pointers?

@vesln vesln closed this Jan 19, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.