Skip to content

Commit

Permalink
Remove major version upgrades from dependabot (#1012)
Browse files Browse the repository at this point in the history
  • Loading branch information
Shaptic authored Jul 19, 2024
1 parent 5f144e1 commit e4b3d2f
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 20 deletions.
4 changes: 0 additions & 4 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,6 @@ updates:
update-types:
- "patch"
- "minor"
major:
applies-to: version-updates
update-types:
- "major"
- package-ecosystem: "github-actions"
directory: "/"
schedule:
Expand Down
2 changes: 1 addition & 1 deletion test/e2e/src/test-contract-client-constructor.js
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ describe("Client", function () {
this.context = { client, publicKey, addr, contractId, keypair };
});

it("can be constructed with `new Client`", async function() {
it("can be constructed with `new Client`", async function () {
const { result } = await this.context.client.hello({ to: "tests" });
expect(result).to.deep.equal(["Hello", "tests"]);
});
Expand Down
22 changes: 14 additions & 8 deletions test/e2e/src/test-custom-types.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,15 +16,15 @@ describe("Custom Types Tests", function () {
).to.equal("tests");
});

it("view method with empty keypair", async function() {
it("view method with empty keypair", async function () {
const { client: client2 } = await clientFor("customTypes", {
keypair: undefined,
contractId: this.context.contractId
contractId: this.context.contractId,
});
expect((await client2.i32_({ i32_: 1 })).result).to.equal(1);
});

it("should increment the counter correctly", async function() {
it("should increment the counter correctly", async function () {
const { result: startingBalance } = await this.context.client.get_count();
const inc = await this.context.client.inc();
const incrementResponse = await inc.signAndSend();
Expand All @@ -34,7 +34,7 @@ describe("Custom Types Tests", function () {
expect(newBalance).to.equal(startingBalance + 1);
});

it("should accept only options object for methods with no arguments", async function() {
it("should accept only options object for methods with no arguments", async function () {
const inc = await this.context.client.inc({ simulate: false });
expect(inc.simulation).to.be.undefined;
});
Expand All @@ -43,13 +43,19 @@ describe("Custom Types Tests", function () {
expect((await this.context.client.woid()).result).to.be.null;
});

it("should authenticate the user correctly", async function() {
const { result } = await this.context.client.auth({ addr: this.context.publicKey, world: "lol" });
it("should authenticate the user correctly", async function () {
const { result } = await this.context.client.auth({
addr: this.context.publicKey,
world: "lol",
});
expect(result).to.equal(this.context.publicKey);
});

it("should authenticate the user correctly", async function() {
const { result } = await this.context.client.auth({ addr: this.context.publicKey, world: "lol" });
it("should authenticate the user correctly", async function () {
const { result } = await this.context.client.auth({
addr: this.context.publicKey,
world: "lol",
});
expect(result).to.equal(this.context.publicKey);
});

Expand Down
13 changes: 6 additions & 7 deletions test/e2e/src/util.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,7 @@ const contracts = {
helloWorld: {
hash: spawnSync(
"./target/bin/soroban",
[
"contract",
"install",
"--wasm",
`${basePath}/hello_world.wasm`,
],
["contract", "install", "--wasm", `${basePath}/hello_world.wasm`],
{ shell: true, encoding: "utf8" },
).stdout.trim(),
path: `${basePath}/hello_world.wasm`,
Expand Down Expand Up @@ -84,7 +79,11 @@ module.exports.friendbotUrl = friendbotUrl;

async function generateFundedKeypair() {
const keypair = Keypair.random();
await fetch(friendbotUrl === 'https://friendbot.stellar.org' ? `${friendbotUrl}/?addr=${keypair.publicKey()}` : `${friendbotUrl}/friendbot?addr=${keypair.publicKey()}`);
await fetch(
friendbotUrl === "https://friendbot.stellar.org"
? `${friendbotUrl}/?addr=${keypair.publicKey()}`
: `${friendbotUrl}/friendbot?addr=${keypair.publicKey()}`,
);
return keypair;
}
module.exports.generateFundedKeypair = generateFundedKeypair;
Expand Down

0 comments on commit e4b3d2f

Please sign in to comment.