diff --git a/docs/reference/examples.md b/docs/reference/examples.md index 697ed4a89..7744affed 100644 --- a/docs/reference/examples.md +++ b/docs/reference/examples.md @@ -95,7 +95,7 @@ const server = new StellarSdk.Server('https://horizon-testnet.stellar.org'); console.log('\nSuccess! View the transaction at: '); console.log(transactionResult._links.transaction.href); } catch (e) { - console.log('An error has occured:'); + console.log('An error has occurred:'); console.log(e); } })(); diff --git a/test/unit/horizon_axios_client_test.js b/test/unit/horizon_axios_client_test.js index e0f75175f..a56e8622b 100644 --- a/test/unit/horizon_axios_client_test.js +++ b/test/unit/horizon_axios_client_test.js @@ -13,7 +13,7 @@ describe("getCurrentServerTime", () => { clock.restore(); }); - it("returns null when the hostname hasnt been hit", () => { + it("returns null when the hostname hasn't been hit", () => { expect(getCurrentServerTime("host")).to.be.null; }); diff --git a/test/unit/server_transaction_test.js b/test/unit/server_transaction_test.js index 537355809..645f99f76 100644 --- a/test/unit/server_transaction_test.js +++ b/test/unit/server_transaction_test.js @@ -241,7 +241,7 @@ describe("server.js transaction tests", function () { done(err); }); }); - it("doesnt add metadata to non-offers", function (done) { + it("doesn't add metadata to non-offers", function (done) { const response = { _links: { transaction: { diff --git a/test/unit/utils_test.js b/test/unit/utils_test.js index 4dc8feb61..ef07703d6 100644 --- a/test/unit/utils_test.js +++ b/test/unit/utils_test.js @@ -530,7 +530,7 @@ describe("Utils", function () { ); }); - it("throws an error if transaction doestn't contain any operation", function () { + it("throws an error if transaction doesn't contain any operation", function () { let keypair = StellarSdk.Keypair.random(); const account = new StellarSdk.Account(keypair.publicKey(), "-1"); const transaction = new StellarSdk.TransactionBuilder( @@ -2120,7 +2120,7 @@ describe("Utils", function () { ).to.eql([this.clientKP2.publicKey()]); }); - it("throws an error if no client but insted the server has signed the transaction", function () { + it("throws an error if no client but instead the server has signed the transaction", function () { const challenge = StellarSdk.Utils.buildChallengeTx( this.serverKP, this.clientKP1.publicKey(),