我在一個kata項目下工作,學習如何用C++編寫單元測試(link to the repository)。該項目中的一個元素是DictionaryPath庫。它被放置在一個單獨的目錄與專用CMakeFile.txt: cmake_minimum_required(VERSION 3.6 FATAL_ERROR)
add_library(DictionaryPath
include/
我學習TDD陣營here和不瞭解下面的測試情況: it('Correctly updates the state after AJAX call in `componentDidMount` was made', (done) => {
nock('https://api.github.com')
.get('/users')
.reply(200, [