diff --git a/spec/unit/dynamodbManagerApply.spec.ts b/spec/unit/dynamodbManagerApply.spec.ts index 9b093f4..00d207b 100644 --- a/spec/unit/dynamodbManagerApply.spec.ts +++ b/spec/unit/dynamodbManagerApply.spec.ts @@ -629,8 +629,8 @@ describe('DynamoDbManager.Apply()', function () error = e; } - assert.notInstanceOf(error, VersionError); assert.equal(error?.message, 'Simulated error'); + assert.notInstanceOf(error, VersionError); assert.isTrue(representationsToUpdateCreatedFromStronglyConsistentRead); }); diff --git a/spec/unit/dynamodbManagerUpdate.spec.ts b/spec/unit/dynamodbManagerUpdate.spec.ts index 834ec76..621861f 100644 --- a/spec/unit/dynamodbManagerUpdate.spec.ts +++ b/spec/unit/dynamodbManagerUpdate.spec.ts @@ -556,8 +556,8 @@ describe('DynamoDbManager.Update()', function () error = e; } - assert.notInstanceOf(error, VersionError); assert.equal(error?.message, 'Simulated error'); + assert.notInstanceOf(error, VersionError); assert.isTrue(desiredObjectCreatedFromStronglyConsistentRead); });