Skip to content

Commit

Permalink
chore(tests): white-space only change - fix test group being nested
Browse files Browse the repository at this point in the history
  • Loading branch information
doublethefish authored and raineorshine committed Dec 10, 2022
1 parent 76b85df commit 487a2f6
Showing 1 changed file with 32 additions and 32 deletions.
64 changes: 32 additions & 32 deletions test/getAllPackages.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -198,42 +198,42 @@ describe('getAllPackages', () => {
workspacePackages.should.deep.equal([])
})
})
})

describe('sub-package-names', () => {
it('FIXME: --workspaces should return all packages not just ones that dir-names-match', async () => {
const [pkgs, workspacePackages]: [string[], string[]] = await getAllPackagesForTest(
'test-data/workspace-sub-package-names/',
{ workspaces: true },
)
describe('sub-package-names', () => {
it('FIXME: --workspaces should return all packages not just ones that dir-names-match', async () => {
const [pkgs, workspacePackages]: [string[], string[]] = await getAllPackagesForTest(
'test-data/workspace-sub-package-names/',
{ workspaces: true },
)

pkgs.should.deep.equal(['pkg/dirname-matches-name/package.json', 'pkg/dirname-will-become-name/package.json'])
workspacePackages.should.deep.equal([
'dirname-matches-name',
'dirname-will-become-name', // should use the directory name
// 'dirname-does-not-match-name', FIXME: this should be returned too
])
})
pkgs.should.deep.equal(['pkg/dirname-matches-name/package.json', 'pkg/dirname-will-become-name/package.json'])
workspacePackages.should.deep.equal([
'dirname-matches-name',
'dirname-will-become-name', // should use the directory name
// 'dirname-does-not-match-name', FIXME: this should be returned too
])
})

it('FIXME: --workspace should return all named packages not just ones that dir-names-match', async () => {
const [pkgs, workspacePackages]: [string[], string[]] = await getAllPackagesForTest(
'test-data/workspace-sub-package-names/',
{
workspaces: false,
workspace: [
'dirname-matches-name',
'dirname-will-become-name',
// 'dirname-does-not-match-name', FIXME: this should be returned too
],
},
)
it('FIXME: --workspace should return all named packages not just ones that dir-names-match', async () => {
const [pkgs, workspacePackages]: [string[], string[]] = await getAllPackagesForTest(
'test-data/workspace-sub-package-names/',
{
workspaces: false,
workspace: [
'dirname-matches-name',
'dirname-will-become-name',
// 'dirname-does-not-match-name', FIXME: this should be returned too
],
},
)

pkgs.should.deep.equal(['pkg/dirname-matches-name/package.json', 'pkg/dirname-will-become-name/package.json'])
workspacePackages.should.deep.equal([
'dirname-matches-name',
'dirname-will-become-name',
// 'dirname-does-not-match-name', FIXME: this should be returned too
])
})
pkgs.should.deep.equal(['pkg/dirname-matches-name/package.json', 'pkg/dirname-will-become-name/package.json'])
workspacePackages.should.deep.equal([
'dirname-matches-name',
'dirname-will-become-name',
// 'dirname-does-not-match-name', FIXME: this should be returned too
])
})
})
})

0 comments on commit 487a2f6

Please sign in to comment.