Skip to content

Commit

Permalink
test(core): Update unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Marinerer committed Sep 24, 2024
1 parent 57d1ddb commit b950722
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions packages/core/__tests__/build.comm.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,15 +28,15 @@ jest.mock('gulp-plumber')

describe('createSrcOptions', () => {
it('should create default options', () => {
expect(createSrcOptions({})).toEqual({})
expect(createSrcOptions()).toEqual({})
})

it('should add name', () => {
expect(createSrcOptions({ name: 'taskName' })).toHaveProperty('since')
it('should add task function', () => {
expect(createSrcOptions(null, () => null)).toHaveProperty('since')
})

it('should add base', () => {
expect(createSrcOptions({ base: 'src' })).toHaveProperty('base')
expect(createSrcOptions('src')).toHaveProperty('base')
})
})

Expand Down

0 comments on commit b950722

Please sign in to comment.