Skip to content

Commit

Permalink
test: change globbed file order
Browse files Browse the repository at this point in the history
  • Loading branch information
pvdlg committed Feb 13, 2018
1 parent dffbea0 commit 3025e7a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions test/glob-assets.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ test('Retrieve file from single glob', async t => {
test('Retrieve multiple files from single glob', async t => {
const globbedAssets = await globAssets(['test/fixtures/*.txt']);

t.deepEqual(globbedAssets, ['test/fixtures/upload.txt', 'test/fixtures/upload_other.txt']);
t.deepEqual(globbedAssets, ['test/fixtures/upload_other.txt', 'test/fixtures/upload.txt']);
});

test('Accept glob array with one value', async t => {
Expand All @@ -97,8 +97,8 @@ test('Replace name by filename for Object that match multiple files', async t =>
const globbedAssets = await globAssets([{path: 'test/fixtures/*.txt', name: 'upload_name', label: 'Upload label'}]);

t.deepEqual(globbedAssets, [
{path: 'test/fixtures/upload_other.txt', name: 'upload_other.txt', label: 'Upload label'},
{path: 'test/fixtures/upload.txt', name: 'upload.txt', label: 'Upload label'},
{path: 'test/fixtures/upload_other.txt', name: 'upload_other.txt', label: 'Upload label'},
]);
});

Expand Down Expand Up @@ -129,7 +129,7 @@ test('Accept negated globs', async t => {
test('Expand directories', async t => {
const globbedAssets = await globAssets([['test/fixtures']]);

t.deepEqual(globbedAssets, ['test/fixtures/upload.txt', 'test/fixtures/upload_other.txt', 'test/fixtures/.dotfile']);
t.deepEqual(globbedAssets, ['test/fixtures/upload_other.txt', 'test/fixtures/upload.txt', 'test/fixtures/.dotfile']);
});

test('Include empty directory as defined', async t => {
Expand Down

0 comments on commit 3025e7a

Please sign in to comment.