Skip to content

Commit

Permalink
fix linting
Browse files Browse the repository at this point in the history
  • Loading branch information
d4v3y0rk committed Jan 11, 2025
1 parent 2688cbd commit 108636c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 7 deletions.
2 changes: 1 addition & 1 deletion cli/lib/exec/spawn.js
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ const GARBAGE_WARNINGS = [
isEGLDriverMessage,
isXdgRuntimeError,
isMesaZinkError,
isGlxDriverError
isGlxDriverError,
]

const isGarbageLineWarning = (str) => {
Expand Down
9 changes: 3 additions & 6 deletions cli/test/lib/exec/spawn_spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -114,18 +114,15 @@ describe('lib/exec/spawn', function () {
})

it('returns true for XDG runtime dir warnings', () => {
const str = 'error: XDG_RUNTIME_DIR is invalid or not set'
expect(spawn.isGarbageLineWarning(str)).to.be.true
expect(spawn.isGarbageLineWarning('error: XDG_RUNTIME_DIR is invalid or not set')).to.be.true
})

it('returns true for MESA ZINK errors', () => {
const str = 'MESA: error: ZINK: failed to choose pdev'
expect(spawn.isGarbageLineWarning(str)).to.be.true
expect(spawn.isGarbageLineWarning('MESA: error: ZINK: failed to choose pdev')).to.be.true
})

it('returns true for GLX driver errors', () => {
const str = 'glx: failed to create drisw screen'
expect(spawn.isGarbageLineWarning(str)).to.be.true
expect(spawn.isGarbageLineWarning('glx: failed to create drisw screen')).to.be.true
})
})

Expand Down

0 comments on commit 108636c

Please sign in to comment.