-
-
Notifications
You must be signed in to change notification settings - Fork 6.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(VTreeview): correcly handle updating items array of equal size (#…
…6202) the VTreeview component did not handle updating items prop with an array of equal size as current array. fixes #6181
- Loading branch information
1 parent
9d964b3
commit 4177931
Showing
5 changed files
with
118 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
import { test } from '@/test' | ||
import { arrayDiff } from './helpers' | ||
|
||
test('helpers.ts', () => { | ||
describe('arrayDiff', () => { | ||
it('should return set difference of arrays A and B', () => { | ||
|
||
expect(arrayDiff(['one', 'two'], ['one'])).toEqual([]) | ||
expect(arrayDiff(['one'], ['one', 'two'])).toEqual(['two']) | ||
expect(arrayDiff([], [])).toEqual([]) | ||
expect(arrayDiff([], ['one'])).toEqual(['one']) | ||
expect(arrayDiff(['one'], ['two'])).toEqual(['two']) | ||
expect(arrayDiff(['one', 'two'], ['one', 'three'])).toEqual(['three']) | ||
}) | ||
}) | ||
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
50 changes: 50 additions & 0 deletions
50
packages/vuetify/test/unit/components/VTreeview/__snapshots__/VTreeview.spec.js.snap
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters