Skip to content

Commit

Permalink
test: update test to match new logic
Browse files Browse the repository at this point in the history
  • Loading branch information
Demivan committed Jan 29, 2022
1 parent 92b7b59 commit 3f4ec88
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/core/test/utils.spec.ts
Expand Up @@ -3,7 +3,7 @@ import { deepMerge } from '../../../packages/vitest/src/utils'
import { deepMergeSnapshot } from '../../../packages/vitest/src/integrations/snapshot/port/utils'

describe('deepMerge', () => {
test('non plain objects retain their prototype, arrays are merging, plain objects are merging', () => {
test('non plain objects retain their prototype, plain objects are merging', () => {
class Test {
baz = 'baz'

Expand Down Expand Up @@ -37,7 +37,7 @@ describe('deepMerge', () => {

expect(merged.test instanceof Test).toBe(true)
expect(merged.num).toBe(40)
expect(merged.array).toEqual([1, 2, 3, 4])
expect(merged.array).toEqual([3, 4])
expect(merged.obj).toEqual({
foo: 'foo',
baz: 'baz',
Expand Down

0 comments on commit 3f4ec88

Please sign in to comment.