Repository: ecadlabs/taquito
Pull request #1021 (2021-08-16 17:44:41)

Pr1018 -  fix unit tests
Thank you for your contribution to Taquito.

Before submitting this PR, please make sure:

- [ ] Your code builds cleanly without any errors or warnings
- [ ] You have added unit tests
- [ ] You have added integration tests (if relevant/appropriate)
- [ ] All public methods or types have TypeDoc coverage with a complete description, and ideally an @example
- [ ] You have added or updated corresponding documentation
- [ ] If relevant, you have written a first draft summary describing the change for inclusion in Release Notes. 

## Release Note Draft Snippet

__If relevant, please write a summary of your change that will be suitable for
inclusion in the Release Notes for the next Taquito release.__



Patch:
diff --git a/packages/taquito-tzip16/src/tzip16-errors.ts b/packages/taquito-tzip16/src/tzip16-errors.ts
index 6090c5a40..8ee3ab93b 100644
--- a/packages/taquito-tzip16/src/tzip16-errors.ts
+++ b/packages/taquito-tzip16/src/tzip16-errors.ts
@@ -60,7 +60,7 @@ export class ForbiddenInstructionInViewCode implements Error {
     message: string;
 
     constructor(public instruction: string) {
-        this.message = `Erreur found in the code of the view. It contains a forbidden instruction: ${instruction}.`;
+        this.message = `Error found in the code of the view. It contains a forbidden instruction: ${instruction}.`;
     }
 }
 
@@ -78,4 +78,4 @@ export class InvalidViewParameterError implements Error {
     constructor(public viewName: string, public sigs: any[], public args: any[]) {
         this.message = `${viewName} Received ${args.length} arguments while expecting one of the following signatures (${JSON.stringify(sigs)})`;
     }
-}
\ No newline at end of file
+}


Test patch:
diff --git a/packages/taquito-tzip16/test/viewKind/michelson-storage-view.spec.ts b/packages/taquito-tzip16/test/viewKind/michelson-storage-view.spec.ts
index b8307d9a8..7f7ed6402 100644
--- a/packages/taquito-tzip16/test/viewKind/michelson-storage-view.spec.ts
+++ b/packages/taquito-tzip16/test/viewKind/michelson-storage-view.spec.ts
@@ -52,7 +52,7 @@ describe('MichelsonStorageView test', () => {
 		}
 		catch (e) {
 			expect(e).toBeInstanceOf(ForbiddenInstructionInViewCode);
-			expect(e.message).toEqual('Erreur found in the code of the view. It contains a forbidden instruction: AMOUNT.')
+			expect(e.message).toEqual('Error found in the code of the view. It contains a forbidden instruction: AMOUNT.')
 		}
 		done();
 	});
@@ -73,7 +73,7 @@ describe('MichelsonStorageView test', () => {
 		}
 		catch (e) {
 			expect(e).toBeInstanceOf(ForbiddenInstructionInViewCode);
-			expect(e.message).toEqual('Erreur found in the code of the view. It contains a forbidden instruction: CREATE_CONTRACT.')
+			expect(e.message).toEqual('Error found in the code of the view. It contains a forbidden instruction: CREATE_CONTRACT.')
 		}
 		done();
 	});
@@ -94,7 +94,7 @@ describe('MichelsonStorageView test', () => {
 		}
 		catch (e) {
 			expect(e).toBeInstanceOf(ForbiddenInstructionInViewCode);
-			expect(e.message).toEqual('Erreur found in the code of the view. It contains a forbidden instruction: SENDER.')
+			expect(e.message).toEqual('Error found in the code of the view. It contains a forbidden instruction: SENDER.')
 		}
 		done();
 	});
@@ -114,7 +114,7 @@ describe('MichelsonStorageView test', () => {
 		}
 		catch (e) {
 			expect(e).toBeInstanceOf(ForbiddenInstructionInViewCode);
-			expect(e.message).toEqual('Erreur found in the code of the view. It contains a forbidden instruction: SET_DELEGATE.')
+			expect(e.message).toEqual('Error found in the code of the view. It contains a forbidden instruction: SET_DELEGATE.')
 		}
 		done();
 	});
@@ -134,7 +134,7 @@ describe('MichelsonStorageView test', () => {
 		}
 		catch (e) {
 			expect(e).toBeInstanceOf(ForbiddenInstructionInViewCode);
-			expect(e.message).toEqual('Erreur found in the code of the view. It contains a forbidden instruction: SOURCE.')
+			expect(e.message).toEqual('Error found in the code of the view. It contains a forbidden instruction: SOURCE.')
 		}
 		done();
 	});
@@ -154,7 +154,7 @@ describe('MichelsonStorageView test', () => {
 		}
 		catch (e) {
 			expect(e).toBeInstanceOf(ForbiddenInstructionInViewCode);
-			expect(e.message).toEqual('Erreur found in the code of the view. It contains a forbidden instruction: TRANSFER_TOKENS.')
+			expect(e.message).toEqual('Error found in the code of the view. It contains a forbidden instruction: TRANSFER_TOKENS.')
 		}
 		done();
 	});
@@ -174,7 +174,7 @@ describe('MichelsonStorageView test', () => {
 		}
 		catch (e) {
 			expect(e).toBeInstanceOf(ForbiddenInstructionInViewCode);
-			expect(e.message).toEqual('Erreur found in the code of the view. It contains a forbidden instruction: TRANSFER_TOKENS.')
+			expect(e.message).toEqual('Error found in the code of the view. It contains a forbidden instruction: TRANSFER_TOKENS.')
 		}
 		done();
 	});
@@ -195,7 +195,7 @@ describe('MichelsonStorageView test', () => {
 		}
 		catch (e) {
 			expect(e).toBeInstanceOf(ForbiddenInstructionInViewCode);
-			expect(e.message).toEqual('Erreur found in the code of the view. It contains a forbidden instruction: the instruction SELF should only be used before ADDRESS.')
+			expect(e.message).toEqual('Error found in the code of the view. It contains a forbidden instruction: the instruction SELF should only be used before ADDRESS.')
 		}
 		done();
 	});
@@ -216,7 +216,7 @@ describe('MichelsonStorageView test', () => {
 		}
 		catch (e) {
 			expect(e).toBeInstanceOf(ForbiddenInstructionInViewCode);
-			expect(e.message).toEqual('Erreur found in the code of the view. It contains a forbidden instruction: the instruction SELF should only be used before ADDRESS.')
+			expect(e.message).toEqual('Error found in the code of the view. It contains a forbidden instruction: the instruction SELF should only be used before ADDRESS.')
 		}
 		done();
 	});