Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Corrected .js files #853

Merged
merged 1 commit into from
Jul 26, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading