Skip to content

Commit a4e3e0b

Browse files
committed
style(test): rewrap two specs oxfmt reported unformatted
1 parent e251a9e commit a4e3e0b

2 files changed

Lines changed: 7 additions & 2 deletions

File tree

packages/cli/test/unit/commands/manifest/run-cdxgen.test.mts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,9 @@ describe('detectNodejsCdxgenSources', () => {
123123

124124
it('detects node_modules/', async () => {
125125
mockFindUp.mockImplementation((name: string) =>
126-
Promise.resolve(name === 'node_modules' ? '/path/to/node_modules' : undefined),
126+
Promise.resolve(
127+
name === 'node_modules' ? '/path/to/node_modules' : undefined,
128+
),
127129
)
128130
const result = await detectNodejsCdxgenSources('/tmp/project')
129131
expect(result.hasLockfile).toBe(false)

packages/cli/test/unit/util/fs/glob-content-dedup.test.mts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,10 @@ describe('globWithGitIgnore() nested-gitignore semantics (slow path)', () => {
153153
path.join(root, 'packages/example/.gitignore'),
154154
'!build/important.json\n',
155155
)
156-
writeFileSync(path.join(root, 'packages/example/build/important.json'), '{}')
156+
writeFileSync(
157+
path.join(root, 'packages/example/build/important.json'),
158+
'{}',
159+
)
157160

158161
const results = await globWithGitIgnore(['**/*'], {
159162
cwd: root,

0 commit comments

Comments
 (0)