Skip to content

Commit 3025e7a

Browse files
committed
test: change globbed file order
1 parent dffbea0 commit 3025e7a

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

test/glob-assets.test.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ test('Retrieve file from single glob', async t => {
7272
test('Retrieve multiple files from single glob', async t => {
7373
const globbedAssets = await globAssets(['test/fixtures/*.txt']);
7474

75-
t.deepEqual(globbedAssets, ['test/fixtures/upload.txt', 'test/fixtures/upload_other.txt']);
75+
t.deepEqual(globbedAssets, ['test/fixtures/upload_other.txt', 'test/fixtures/upload.txt']);
7676
});
7777

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

9999
t.deepEqual(globbedAssets, [
100-
{path: 'test/fixtures/upload_other.txt', name: 'upload_other.txt', label: 'Upload label'},
101100
{path: 'test/fixtures/upload.txt', name: 'upload.txt', label: 'Upload label'},
101+
{path: 'test/fixtures/upload_other.txt', name: 'upload_other.txt', label: 'Upload label'},
102102
]);
103103
});
104104

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

132-
t.deepEqual(globbedAssets, ['test/fixtures/upload.txt', 'test/fixtures/upload_other.txt', 'test/fixtures/.dotfile']);
132+
t.deepEqual(globbedAssets, ['test/fixtures/upload_other.txt', 'test/fixtures/upload.txt', 'test/fixtures/.dotfile']);
133133
});
134134

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

0 commit comments

Comments
 (0)