Created
September 22, 2021 16:59
-
-
Save seia-soto/83119a44421a35b68a3090a47a12ca0b to your computer and use it in GitHub Desktop.
갬덩 실화 새벽 갬성
This file contains hidden or 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
/** | |
* @author 챙챙 | |
* @writer 논란 | |
* @review 챙챙 평가원 | |
* @궁예 챙챙 | |
* @수강생 논란 | |
* @풀이 카니 | |
* | |
* @문제 화자는 언제 신체 검사를 했을까? | |
* | |
* 1. 서버가 "닥쳐"라고 말했을 때... | |
* 2. 눈물을 흘리기 전에... | |
* 3. 눈물을 흘린 다음... | |
* 4. 테스트가 실행되었을 때...! | |
*/ | |
const { test, before, teardown } = require('tap'); | |
const { createInstance } = require('../src'); | |
let server; // 서버 인스턴스 | |
// 테스트를 시작하기 전에 서버 인스턴스 생성! | |
// 이렇게 하면 따로 서버를 열지 않고 테스트 가능 | |
before(async () => { | |
server = createInstance(); | |
}); | |
// 테스트 종료하기 전에 데이터베이스 연결 종료해야 안전하게 종료됨 | |
/* | |
난... ㄱ ㅏ끔... 눈물을 흘린 ㄷ ㅏ .... | |
*/ | |
teardown(async () => { | |
/** | |
* 감동 쉴화 스토리 | |
*/ | |
await server.shutdown(); // "닥쳐!" Server said in async mode. 그리고 난 그것을 await으로 기다려주었다. | |
}); | |
// 그리고 신체 검사하기 시작했다. | |
test('I am tearing down', async t => { | |
}); |
😿😿😿😿😿😿😿😿😿😿😿😿😿
😿 난... ㄱ ㅏ끔... 눈물을 흘린 ㄷ ㅏ ......😿
😿😿😿😿😿😿😿😿😿😿😿😿😿
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
너무 감동적이네요~ 읽으면서 저도 눈물 흘렸어요... teaㅏ....dㅇwn....@