Skip to content

Instantly share code, notes, and snippets.

@seia-soto
Created September 22, 2021 16:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save seia-soto/83119a44421a35b68a3090a47a12ca0b to your computer and use it in GitHub Desktop.
Save seia-soto/83119a44421a35b68a3090a47a12ca0b to your computer and use it in GitHub Desktop.
갬덩 실화 새벽 갬성
/**
* @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 => {
});
@030ii
Copy link

030ii commented Sep 22, 2021

너무 감동적이네요~ 읽으면서 저도 눈물 흘렸어요... teaㅏ....dㅇwn....@

@seia-soto
Copy link
Author

seia-soto commented Sep 22, 2021

😿😿😿😿😿😿😿😿😿😿😿😿😿
😿 난... ㄱ ㅏ끔... 눈물을 흘린 ㄷ ㅏ ......😿
😿😿😿😿😿😿😿😿😿😿😿😿😿

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment