Skip to content

Commit

Permalink
Corrected typos in various messages (#853)
Browse files Browse the repository at this point in the history
  • Loading branch information
criadoperez committed Jul 26, 2023
1 parent b5eac57 commit 2a0b4e8
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion docs/reference/examples.md
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
})();
Expand Down
2 changes: 1 addition & 1 deletion test/unit/horizon_axios_client_test.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
});

Expand Down
2 changes: 1 addition & 1 deletion test/unit/server_transaction_test.js
Original file line number Diff line number Diff line change
Expand Up @@ -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: {
Expand Down
4 changes: 2 additions & 2 deletions test/unit/utils_test.js
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down Expand Up @@ -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(),
Expand Down

0 comments on commit 2a0b4e8

Please sign in to comment.