Skip to content

Commit

Permalink
style(naming): Improve the naming (#58)
Browse files Browse the repository at this point in the history
Move the test directory to the root, rename the stories file, and add emoji for this project
  • Loading branch information
5ouma authored Nov 22, 2024
1 parent 2223ce7 commit 70d85d4
Show file tree
Hide file tree
Showing 16 changed files with 13 additions and 13 deletions.
4 changes: 2 additions & 2 deletions .github/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

<div align="center">

**πŸͺͺ Turn your smartphone into a name card**
**πŸ“‡ Turn your smartphone into a name card**

[![GitHub Release](https://img.shields.io/github/v/release/5ouma/mobicard?style=flat-square)](https://github.com/5ouma/mobicard/releases)
<br />
Expand Down Expand Up @@ -49,7 +49,7 @@
1. Clone this repository

```sh
git clone https://github.com/5ouma/reproxy.git
git clone https://github.com/5ouma/mobicard.git
```

2. Copy the [`meta.tmpl.json`] to `meta.json` and edit as you prefer
Expand Down
2 changes: 1 addition & 1 deletion src/components/Access/Access.stories.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import Access from "./Access.astro";
import * as stories from "./story.ts";
import * as stories from "./stories.ts";

export default {
title: "Homepage and Email",
Expand Down
2 changes: 1 addition & 1 deletion src/components/Access/Access.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { describe, expect, test } from "vitest";

import Access from "./Access.astro";
import type { Props } from "./Access.astro";
import * as stories from "./story.ts";
import * as stories from "./stories.ts";

describe("Access", () => {
describe("Valid URL", () => {
Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion src/components/Bio/Bio.stories.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import Bio from "./Bio.astro";
import * as stories from "./story.ts";
import * as stories from "./stories.ts";

export default {
title: "Bio",
Expand Down
2 changes: 1 addition & 1 deletion src/components/Bio/Bio.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { experimental_AstroContainer as AstroContainer } from "astro/container";
import { describe, expect, test } from "vitest";

import Bio from "./Bio.astro";
import * as stories from "./story.ts";
import * as stories from "./stories.ts";

describe("Bio", () => {
for (const [name, props] of Object.entries(stories)) {
Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion src/components/Card/Card.stories.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import Card from "./Card.astro";
import * as stories from "./story.ts";
import * as stories from "./stories.ts";

export default {
title: "Card",
Expand Down
2 changes: 1 addition & 1 deletion src/components/Card/Card.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { describe, expect, test } from "vitest";

import Card from "./Card.astro";
import type { Props } from "./Card.astro";
import * as stories from "./story.ts";
import * as stories from "./stories.ts";

describe("Card", () => {
describe("Valid URL", () => {
Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion src/components/SNS/SNS.stories.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import SNS from "./SNS.astro";
import * as stories from "./story.ts";
import * as stories from "./stories.ts";

export default {
title: "SNS Links",
Expand Down
2 changes: 1 addition & 1 deletion src/components/SNS/SNS.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { experimental_AstroContainer as AstroContainer } from "astro/container";
import { describe, expect, test } from "vitest";

import SNS from "./SNS.astro";
import * as stories from "./story.ts";
import * as stories from "./stories.ts";

describe("SNS", () => {
describe("Valid service and ID", () => {
Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion src/layouts/Layout.astro
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ const { title, description, icon } = Astro.props;
<!doctype html>
<!---
Mobicard created by @5ouma
πŸ“‡ Mobicard created by @5ouma
https://github.com/5ouma/mobicard
- πŸš€ Built with Astro
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
exports[`Index 1`] = `
"<!---
Mobicard created by @5ouma
πŸ“‡ Mobicard created by @5ouma
https://github.com/5ouma/mobicard
- πŸš€ Built with Astro
Expand Down
2 changes: 1 addition & 1 deletion src/test/index.test.ts β†’ tests/index.test.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { experimental_AstroContainer as AstroContainer } from "astro/container";
import { expect, test } from "vitest";

import Index from "../pages/index.astro";
import Index from "../src/pages/index.astro";

test("Index", async () => {
const container: AstroContainer = await AstroContainer.create();
Expand Down

0 comments on commit 70d85d4

Please sign in to comment.