Skip to content

Commit

Permalink
Address codacy
Browse files Browse the repository at this point in the history
  • Loading branch information
eamahanna committed Oct 12, 2020
1 parent 0a28312 commit 0196e1b
Showing 1 changed file with 12 additions and 12 deletions.
24 changes: 12 additions & 12 deletions test/unit/spec/narrative_core/upload/fileUploadWidget-spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -63,18 +63,18 @@ define([
});

it('Should be able to set and retrieve the path', () => {
const $node = $('<div>'),
fuw = new FileUploadWidget($node, {
path: '/',
userInfo: {
user: fakeUser,
globusLinked: true
}
});
const newPath = 'newPath';
fuw.setPath(newPath);
expect(fuw.getPath()).toEqual(newPath);
});
const $node = $('<div>'),
fuw = new FileUploadWidget($node, {
path: '/',
userInfo: {
user: fakeUser,
globusLinked: true
}
});
const newPath = 'newPath';
fuw.setPath(newPath);
expect(fuw.getPath()).toEqual(newPath);
});

it('Should start and succeed on an upload when a file is given', (done) => {
const filename='foo.txt';
Expand Down

0 comments on commit 0196e1b

Please sign in to comment.