Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
marumoto-goq committed May 1, 2024
1 parent 4003b63 commit 9b42acd
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/test/convertZipCode.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { goqZipCode } from './utils/goqZipCode';

describe('convertZipCodeの動作をテスト', () => {
const expectedZipCodeExcludingHyphen = '7320021';

test('全角の郵便番号を半角に変換', () => {
expect(goqZipCode.convertZipCode('7320021')).toBe(
expectedZipCodeExcludingHyphen
Expand Down
4 changes: 2 additions & 2 deletions src/test/type/type.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,5 @@ export type Address<ZipCode extends string> = {
town: string;
};

export type UnHyphenatedZipCode = `${string}`
export type HyphenatedZipCode = `${string}-${string}`
export type UnHyphenatedZipCode = `${string}`;
export type HyphenatedZipCode = `${string}-${string}`;
6 changes: 5 additions & 1 deletion src/test/utils/goqZipCode.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
import type { Address, HyphenatedZipCode, UnHyphenatedZipCode } from '../type/type';
import type {
Address,
HyphenatedZipCode,
UnHyphenatedZipCode,
} from '../type/type';

export const goqZipCode = {
convertZipCode: function (testZipCode: string): string {
Expand Down

0 comments on commit 9b42acd

Please sign in to comment.