From 01e58f0c6f8c9c4b8f4c4e16603721f0df725134 Mon Sep 17 00:00:00 2001 From: xrwang Date: Thu, 8 Jun 2017 16:03:08 -0700 Subject: [PATCH 1/2] kim kardashian not cim cardashian --- index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.js b/index.js index 893140f..c653f9b 100644 --- a/index.js +++ b/index.js @@ -1,5 +1,5 @@ var hat = require('hat'); module.exports = function cat() { - return 'c' + hat().substring(1); + return 'k' + hat().substring(1); }; From 4bb3ca88f2670c2d574e08f1a35a7bff1e0ef420 Mon Sep 17 00:00:00 2001 From: xrwang Date: Thu, 8 Jun 2017 16:04:15 -0700 Subject: [PATCH 2/2] tests --- test/index.test.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/index.test.js b/test/index.test.js index 75a99e4..b81bc0d 100644 --- a/test/index.test.js +++ b/test/index.test.js @@ -2,9 +2,9 @@ var test = require('tape'); var cat = require('..'); for (var i = 0; i < 10000; i++) { - test('starts with c', function(assert) { + test('starts with k', function(assert) { var str = cat(); - assert.equal(str[0], 'c', 'starts with c'); + assert.equal(str[0], 'k', 'starts with k'); assert.end(); }); }