3 ms·
I did it the other way around; I wrote the tests within the code snippet (https://news.ycombinator.com/item?id=17837016 https://news.ycombinator.com/item?id=178
by franciscop 8y ago
I did it the other way around; I wrote the tests within the code snippet (https://news.ycombinator.com/item?id=17837016 https://news.ycombinator.com/item?id=17837016). I was going to remove them when rendering, but in the end I thought they might actually be helpful and clarify things, so I left the tests within the snippets.
For reference, here is the JS test builder (fairly rough): https://github.com/franciscop/server/blob/master/test/examples.test.js https://github.com/franciscop/server/blob/master/test/exampl...