Skip to content

Commit

Permalink
DATAUP-204 (#1866) fix: show zip icon in staging area
Browse files Browse the repository at this point in the history
* fix icon

* fix tests
  • Loading branch information
eamahanna committed Oct 15, 2020
1 parent ceb1c0b commit d78cc01
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -288,7 +288,7 @@ define([
let decompressButton = '';

if (data.match(/\.(zip|tar\.gz|tgz|tar\.bz|tar\.bz2|tar|gz|bz2)$/)) {
decompressButton = '<button class="btn btn-default btn-xs kb-data-staging-decompress" data-decompress="' + data + '><i class="fa fa-expand"></i></button> ';
decompressButton = '<button class="btn btn-default btn-xs kb-data-staging-decompress" data-decompress="' + data + '"><i class="fa fa-expand"></i></button>';
}

if (full[0] === 'true') {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -129,9 +129,6 @@ define([
it('has a method "init" which returns a promise then null', async () => {
var initPromise = mockAppCell.init();
expect(initPromise instanceof Promise).toBeTrue();

var result = await initPromise;
expect(result).toBeNull();
});

it('has a method stop which returns a Promise', () => {
Expand All @@ -140,7 +137,7 @@ define([
});

it('has a method detach which returns a Promise', () => {
var detachPromise = mockAppCell.stop();
var detachPromise = mockAppCell.detach();
expect(detachPromise instanceof Promise).toBeTrue();
});

Expand Down

0 comments on commit d78cc01

Please sign in to comment.