Skip to content

Commit

Permalink
Fix boundaryCollection test
Browse files Browse the repository at this point in the history
  • Loading branch information
Roschl committed Jan 25, 2021
1 parent 0fa3a47 commit c1b1092
Showing 1 changed file with 8 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ test('BoundaryCollection compareWith well', () => {
}];

let result = BoundaryCollection.fromObject(bc1).compareWith(
Stressperiods.fromDefaults(), BoundaryCollection.fromObject(bc1)
Stressperiods.fromDefaults(), BoundaryCollection.fromObject(bc1), true
);
expect(result).toEqual([{
diff: {},
Expand All @@ -73,7 +73,7 @@ test('BoundaryCollection compareWith well', () => {

const bc2: IBoundary[] = [];
result = BoundaryCollection.fromObject(bc1).compareWith(
Stressperiods.fromDefaults(), BoundaryCollection.fromObject(bc2)
Stressperiods.fromDefaults(), BoundaryCollection.fromObject(bc2), true
);
expect(result).toEqual([{
diff: {},
Expand Down Expand Up @@ -101,7 +101,7 @@ test('BoundaryCollection compareWith well', () => {
}];

result = BoundaryCollection.fromObject(bc1).compareWith(
Stressperiods.fromDefaults(), BoundaryCollection.fromObject(bc3)
Stressperiods.fromDefaults(), BoundaryCollection.fromObject(bc3), true
);

expect(result).toEqual([{
Expand Down Expand Up @@ -158,7 +158,7 @@ test('BoundaryCollection compareWith well', () => {
const bc4bc = BoundaryCollection.fromObject(bc4);
expect(bc4bc.length).toEqual(2);
result = BoundaryCollection.fromObject(bc1).compareWith(
Stressperiods.fromDefaults(), BoundaryCollection.fromObject(bc4)
Stressperiods.fromDefaults(), BoundaryCollection.fromObject(bc4), true
);
expect(result).toEqual([
{
Expand Down Expand Up @@ -190,7 +190,7 @@ test('BoundaryCollection compareWith LineBoundary', () => {
const bc1 = new BoundaryCollection([chb1]);
const bc2 = new BoundaryCollection([chb1]);

expect(bc1.compareWith(Stressperiods.fromDefaults(), bc2)).toEqual([{
expect(bc1.compareWith(Stressperiods.fromDefaults(), bc2, true)).toEqual([{
diff: {},
id,
name: 'NameOfConstantHead',
Expand All @@ -199,15 +199,15 @@ test('BoundaryCollection compareWith LineBoundary', () => {
}]);

const bc3 = new BoundaryCollection();
expect(bc1.compareWith(Stressperiods.fromDefaults(), bc3)).toEqual([{
expect(bc1.compareWith(Stressperiods.fromDefaults(), bc3, true)).toEqual([{
diff: {},
id,
name: 'NameOfConstantHead',
state: 'delete',
type: 'chd'
}]);

expect(bc3.compareWith(Stressperiods.fromDefaults(), bc1)).toEqual([{
expect(bc3.compareWith(Stressperiods.fromDefaults(), bc1, true)).toEqual([{
diff: {},
id,
name: 'NameOfConstantHead',
Expand All @@ -221,7 +221,7 @@ test('BoundaryCollection compareWith LineBoundary', () => {

const bc5 = new BoundaryCollection([chb2]);

expect(bc1.compareWith(Stressperiods.fromDefaults(), bc5)).toEqual([{
expect(bc1.compareWith(Stressperiods.fromDefaults(), bc5, true)).toEqual([{
diff: {
geometry: {coordinates: [[3, 4], [3, 5], [4, 5], [5, 3], [3, 4]]},
name: 'Updated'
Expand Down

0 comments on commit c1b1092

Please sign in to comment.