Skip to content

Commit

Permalink
Update generate-json-patch.spec.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
lukascivil committed Jul 28, 2023
1 parent c7be77c commit a92249f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/core/generate-json-patch.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import { JsonPatch } from '../models/jsondiffer.model'
import { generateJsonPatch } from './generate-json-patch'

describe('GenerateJsonPatch function', () => {
test('Should return the difference between two basic structures', () => {
test('Should generate JSON Patch operations from delta', () => {
const struct1 = { '0': [{ '0': 1 }] }
const struct2 = { '0': { '0': [1] } }
const expectedResult: Array<JsonPatch> = [
Expand All @@ -22,7 +22,7 @@ describe('GenerateJsonPatch function', () => {
expect(result).toEqual(expectedResult)
})

test('Should return the difference between two basic structures', () => {
test('Should generate JSON Patch operations from delta', () => {
const struct1 = {
baz: 'qux',
foo: 'bar'
Expand Down

0 comments on commit a92249f

Please sign in to comment.