以下のSlideShareが大変参考になったので備忘を兼ねてCoffeeScript版を書いてみた。 JS開発におけるTDDと自動テストツール利用の勘所 http://www.slideshare.net/KojiNakamura/jstdd 目次 1. Matcher概観 2. beforeEach / afterEach 3. Spy 4. Async Test 5. jQuery code test 1. Matcher概観 notで否定のMatcherとなる expect(x).toEqual(y) expect(x).not.toEqual(y) expect(x).toBe(y) toBeは === による等値チェック expect(x).toMatch(pattern) expect(x).toBeDefined() expect(x).toBeUndefined() expec
![JSテストツールJasmineをCoffeeScriptで使う(少し応用的な使い方) - Qiita](https://cdn-ak-scissors.b.st-hatena.com/image/square/7cb260d4d5c8b1936b6d21c3ebc4b0b767e8f009/height=288;version=1;width=512/https%3A%2F%2Fqiita-user-contents.imgix.net%2Fhttps%253A%252F%252Fcdn.qiita.com%252Fassets%252Fpublic%252Farticle-ogp-background-412672c5f0600ab9a64263b751f1bc81.png%3Fixlib%3Drb-4.0.0%26w%3D1200%26mark64%3DaHR0cHM6Ly9xaWl0YS11c2VyLWNvbnRlbnRzLmltZ2l4Lm5ldC9-dGV4dD9peGxpYj1yYi00LjAuMCZ3PTk3MiZoPTM3OCZ0eHQ9SlMlRTMlODMlODYlRTMlODIlQjklRTMlODMlODglRTMlODMlODQlRTMlODMlQkMlRTMlODMlQUJKYXNtaW5lJUUzJTgyJTkyQ29mZmVlU2NyaXB0JUUzJTgxJUE3JUU0JUJEJUJGJUUzJTgxJTg2JUVGJUJDJTg4JUU1JUIwJTkxJUUzJTgxJTk3JUU1JUJGJTlDJUU3JTk0JUE4JUU3JTlBJTg0JUUzJTgxJUFBJUU0JUJEJUJGJUUzJTgxJTg0JUU2JTk2JUI5JUVGJUJDJTg5JnR4dC1hbGlnbj1sZWZ0JTJDdG9wJnR4dC1jb2xvcj0lMjMxRTIxMjEmdHh0LWZvbnQ9SGlyYWdpbm8lMjBTYW5zJTIwVzYmdHh0LXNpemU9NTYmcz05YzRiNTk2OGJkOGU2YTVkNzNiYmEzY2UwNWVhNzZhMQ%26mark-x%3D142%26mark-y%3D57%26blend64%3DaHR0cHM6Ly9xaWl0YS11c2VyLWNvbnRlbnRzLmltZ2l4Lm5ldC9-dGV4dD9peGxpYj1yYi00LjAuMCZoPTc2Jnc9NzcwJnR4dD0lNDBGZWVsLVBoeXNpY3MmdHh0LWNvbG9yPSUyMzFFMjEyMSZ0eHQtZm9udD1IaXJhZ2lubyUyMFNhbnMlMjBXNiZ0eHQtc2l6ZT0zNiZ0eHQtYWxpZ249bGVmdCUyQ3RvcCZzPWEwMmQxN2Y0MmNlNTQ5MTUyMWYwYTFkNTAyOThjZDBl%26blend-x%3D142%26blend-y%3D486%26blend-mode%3Dnormal%26s%3D163165f8e861f93e050b1462409cc790)