Skip to content

chore: run prettier and add scripts #15

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

Merged
merged 3 commits into from
Mar 10, 2025
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
18 changes: 18 additions & 0 deletions .github/workflows/format.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
name: Check Formatting

on:
pull_request:
branches:
- main

jobs:
check_formatting:
defaults:
run:
shell: bash
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
- run: npm ci
- run: npm run format:check
12 changes: 6 additions & 6 deletions contracts/hello-world.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,14 @@ import { TestExecutionContext } from "@algorandfoundation/algorand-typescript-te
import { HelloWorldContract } from "./hello-world.algo";
import { describe, expect, test } from "@jest/globals";

describe('HelloWorldContract', () => {
describe("HelloWorldContract", () => {
const ctx = new TestExecutionContext();

test('Logs the returned value when sayHello is called', () => {
const contract = ctx.contract.create(HelloWorldContract);
test("Logs the returned value when sayHello is called", () => {
const contract = ctx.contract.create(HelloWorldContract);

const result = contract.sayHello("Sally");
const result = contract.sayHello("Sally");

expect(result).toBe("Hello Sally");
expect(result).toBe("Hello Sally");
});
});
});
Loading