-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
8 changed files
with
288 additions
and
70 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,37 +1,29 @@ | ||
import { TheCampClient } from './the-camp.client'; | ||
|
||
describe.skip('TheCampClient e2e', () => { | ||
describe('TheCampClient e2e', () => { | ||
it('성공', async () => { | ||
const theCampClient = new TheCampClient(); | ||
|
||
await theCampClient.login({ | ||
id: '', | ||
password: '', | ||
id: process.env.ID!, | ||
password: process.env.PASSWORD!, | ||
}); | ||
|
||
await theCampClient.sendLetter( | ||
{ | ||
성분: '예비군인/훈련병', | ||
군종: '육군', | ||
이름: '홍길동', | ||
입영부대: '육군훈련소-논산', | ||
관계: '팬', | ||
생년월일: '2001-01-01', | ||
입영일: '2022-02-14', | ||
전화번호: '01012341234', | ||
const soldierIdentifier = await theCampClient.registerSoldier({ | ||
성분: '예비군인/훈련병', | ||
군종: '육군', | ||
이름: '홍길동', | ||
입영부대: '육군훈련소-논산', | ||
관계: '팬', | ||
생년월일: '2001-11-26', | ||
입영일: '2022-02-14', | ||
전화번호: '01094862564', | ||
}); | ||
|
||
생년월일Code: '08IyuIy6/tXS/vveGiNc+Q==', | ||
입영부대TypeCode: '0000140001', | ||
입영부대EduId: '', | ||
훈련병Id: '', | ||
}, | ||
{ | ||
작성자: '장지훈', | ||
제목: `내용은 곧 제목`, | ||
내용: `제목은 | ||
곧 | ||
내용`, | ||
}, | ||
); | ||
await theCampClient.sendLetter(soldierIdentifier, { | ||
작성자: '장지훈', | ||
제목: `내용은 곧 제목22`, | ||
내용: `제목은 곧 내용`, | ||
}); | ||
}); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,3 @@ | ||
export * from './client'; | ||
export * from './core/types'; | ||
export * from './services/the-camp'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.