Skip to content

Commit a394f2f

Browse files
committed
test: extract: simplify
1 parent 22adaa4 commit a394f2f

1 file changed

Lines changed: 5 additions & 9 deletions

File tree

lib/extract/extract.spec.js

Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ import {extract} from './extract.js';
44

55
const {branch, merge} = create({
66
cli: false,
7+
maybeSimple: false,
78
});
89

910
const {parse, stringify} = JSON;
@@ -15,15 +16,10 @@ test('redlint: extract', (t) => {
1516
branch,
1617
}));
1718

18-
const expected = {
19-
type: 'directory',
20-
filename: '/hello/world',
21-
files: [{
22-
type: 'file',
23-
filename: '/hello/world/README.md',
24-
content: '',
25-
}],
26-
};
19+
const expected = [
20+
'/hello/world/',
21+
['/hello/world/README.md', ''],
22+
];
2723

2824
t.deepEqual(result, expected);
2925
t.end();

0 commit comments

Comments
 (0)