Skip to content

Commit

Permalink
Fixed flaky getFiles test by giving it its own localStorage namespace
Browse files Browse the repository at this point in the history
  • Loading branch information
OscarGodson committed Jul 15, 2012
1 parent 00bbbc0 commit 58e84b9
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion spec/spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -225,7 +225,11 @@ describe('EpicEditor.getFiles', function () {
before(function () {
localStorage.clear();
testEl = _createTestElement();
editor = new EpicEditor({ basePath: '/epiceditor/', container: testEl }).load();
editor = new EpicEditor({
basePath: '/epiceditor/'
, container: testEl
, localStorageName: 'epiceditor-getFiles'
}).load();
fooFile = 'foo' + _randomNum();
barFile = 'bar' + _randomNum();
editor.importFile(fooFile, 'foo');
Expand Down

1 comment on commit 58e84b9

@OscarGodson
Copy link
Owner Author

Choose a reason for hiding this comment

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

@dadambickford this should fix the build

Please sign in to comment.