{"_id":"@aatxxe/simple-unit-test","_rev":"2-b79d28a2ad105f10643d226ec771e67a","name":"@aatxxe/simple-unit-test","dist-tags":{"latest":"1.3.0"},"versions":{"1.2.5":{"name":"@aatxxe/simple-unit-test","version":"1.2.5","description":"the live, love, laugh of unit tests","type":"module","main":"index.js","scripts":{"test":"node index.test.js"},"author":{"name":"Steve Saldivar"},"license":"ISC","repository":{"type":"git","url":"git+https://github.com/aatxxe/simple-unit-test.git"},"homepage":"https://github.com/aatxxe/simple-unit-test#readme","keywords":["test","testing","unit","assert","live","love","laugh"],"dependencies":{"lodash":"^4.17.21"},"_id":"@aatxxe/simple-unit-test@1.2.5","gitHead":"9c2bcb426e4b4b86f62787a72c430dbf2aadda8d","bugs":{"url":"https://github.com/aatxxe/simple-unit-test/issues"},"_nodeVersion":"21.1.0","_npmVersion":"10.2.4","dist":{"integrity":"sha512-U0p1NhAMRpinZHXsb3tqIgBJX5iRuL2lTDEUrpg7Dl6FHvXbfXm8OJgc1aR6LPRdMvZlMF3HSvfKwqKYUaR+rw==","shasum":"561baf582afc97ec33a5285b042b0c3d77361c02","tarball":"https://registry.npmjs.org/@aatxxe/simple-unit-test/-/simple-unit-test-1.2.5.tgz","fileCount":5,"unpackedSize":6544,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIEm7vPyoi10326NBurTYiMaGaTmvBZDsI+jDUYRm8LCfAiA2r/2WcswYRhQIbKLCfi8GT2JPE8TGRtJwhznuyfv3eQ=="}]},"_npmUser":{"name":"sslick","email":"steve.saldivar@gmail.com"},"directories":{},"maintainers":[{"name":"sslick","email":"steve.saldivar@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/simple-unit-test_1.2.5_1700633054238_0.9660244695353783"},"_hasShrinkwrap":false},"1.2.6":{"name":"@aatxxe/simple-unit-test","version":"1.2.6","description":"the live, love, laugh of unit tests","type":"module","main":"index.js","scripts":{"test":"node index.test.js"},"author":{"name":"Steve Saldivar"},"license":"ISC","repository":{"type":"git","url":"git+https://github.com/aatxxe/simple-unit-test.git"},"homepage":"https://github.com/aatxxe/simple-unit-test#readme","keywords":["test","testing","unit","assert","live","love","laugh"],"dependencies":{"lodash":"^4.17.21"},"_id":"@aatxxe/simple-unit-test@1.2.6","gitHead":"92f57d3de365bee6e3b4452e86202016bcb62ffa","bugs":{"url":"https://github.com/aatxxe/simple-unit-test/issues"},"_nodeVersion":"20.9.0","_npmVersion":"10.1.0","dist":{"integrity":"sha512-DRS9UGEkgZsxf9hVGflVfRvGZLwb1ZSlgPEpYSXEec3F9ec513gjVBpc85ZvP/77WY1riINbl1jxNRbJYO8a3w==","shasum":"832ffd7e7d0eff67ae2111cba55acbb7770dde58","tarball":"https://registry.npmjs.org/@aatxxe/simple-unit-test/-/simple-unit-test-1.2.6.tgz","fileCount":5,"unpackedSize":6357,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCICroFMFApTbBw4HwBJQPz2zqfZwxDyOnIOwDkZfFUS3HAiA0gpf843lS7scEUIu/ia85DwHY816sveVre7CxqTE22A=="}]},"_npmUser":{"name":"sslick","email":"steve.saldivar@gmail.com"},"directories":{},"maintainers":[{"name":"sslick","email":"steve.saldivar@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/simple-unit-test_1.2.6_1700633887866_0.39357375601132527"},"_hasShrinkwrap":false},"1.3.0":{"name":"@aatxxe/simple-unit-test","version":"1.3.0","description":"the live, love, laugh of unit tests","type":"module","main":"index.js","scripts":{"test":"node run-tests.js"},"author":{"name":"Steve Saldivar"},"license":"ISC","repository":{"type":"git","url":"git+https://github.com/aatxxe/simple-unit-test.git"},"homepage":"https://github.com/aatxxe/simple-unit-test#readme","keywords":["test","testing","unit","assert","live","love","laugh"],"dependencies":{"lodash":"^4.17.21"},"_id":"@aatxxe/simple-unit-test@1.3.0","gitHead":"f1c4c3754638eaad08491d01950e4f1b2f6cb961","bugs":{"url":"https://github.com/aatxxe/simple-unit-test/issues"},"_nodeVersion":"20.9.0","_npmVersion":"10.1.0","dist":{"integrity":"sha512-aL7jPPVhEoAYV0xMOw7i3BujAsGA6hTT9xYcosNYZmtgOS9k9O+owHkrLe6zPStjQdNvHugFJEYEU+iA8SRxEw==","shasum":"f906dd2fd577d9007d8d80cbff309496be2ebe3f","tarball":"https://registry.npmjs.org/@aatxxe/simple-unit-test/-/simple-unit-test-1.3.0.tgz","fileCount":6,"unpackedSize":7252,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIDNcoOF33vD/X98UyYqCmKY4TX89jiXZR+m2YbhYnBf/AiEAmUgRomEofXrp9y6KR3Fq5F93j/GLoctp5BYrlq3xcfw="}]},"_npmUser":{"name":"sslick","email":"steve.saldivar@gmail.com"},"directories":{},"maintainers":[{"name":"sslick","email":"steve.saldivar@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/simple-unit-test_1.3.0_1700640524124_0.05312246062568082"},"_hasShrinkwrap":false}},"time":{"created":"2023-11-22T06:04:14.168Z","1.2.5":"2023-11-22T06:04:14.424Z","modified":"2023-11-22T08:08:44.558Z","1.2.6":"2023-11-22T06:18:08.025Z","1.3.0":"2023-11-22T08:08:44.315Z"},"maintainers":[{"name":"sslick","email":"steve.saldivar@gmail.com"}],"description":"the live, love, laugh of unit tests","homepage":"https://github.com/aatxxe/simple-unit-test#readme","keywords":["test","testing","unit","assert","live","love","laugh"],"repository":{"type":"git","url":"git+https://github.com/aatxxe/simple-unit-test.git"},"author":{"name":"Steve Saldivar"},"bugs":{"url":"https://github.com/aatxxe/simple-unit-test/issues"},"license":"ISC","readme":"# Simple Unit Test\n\nSimple unit tests, for simple people like me.\n\n<img src=\"https://i.imgur.com/IQRi78U.jpg\" alt=\"terminal-output\" width=\"200\"/>\n\n## Note:\n\nYou're probably better off using a real testing suite.\nI just wanted to see if I can write my own since I've never really thought about\nhow these things are made.\n\nWith that being said, if you insist on using this, then read on my adventurous\nfriends...\n\n### Here's some examples:\n\n```javascript\n/*\nLet's run some tests baby!!!\n*/\nimport { describe, it, expects } from '@aatxxe/simple-unit-test'\nimport simpleSum from './simpleSum.js'\n\ndescribe('Random Math Tests', () => {\n  it('1+3 should equal 4', () => {\n    // you can use that sweet, sweet function you made\n    expects(simpleSum(1, 3)).toBe(4)\n  })\n  it('1+1 should equal 2', () => {\n    expects(simpleSum(1, 1)).toBe(1)\n  })\n  it('1+1 should not equal 1', () => {\n    // or you can make a new function here and never use it again anywhere\n    const sum = (a, b) => a + b\n    expects(sum(1, 1)).toNotBe(1)\n  })\n  it('10+1 should equal 11', () => {\n    const sum = (a, b) => a + b\n    expects(sum(10, 1)).toBe(9)\n  })\n})\n\ndescribe('Random Object Tests', () => {\n  console.log('You can run stuff before your test block start.')\n  it('should return the object {test: true}', () => {\n    console.log('Even do stuff before a test runs.')\n    expects({ test: true }).toBe({ test: true })\n  })\n  it('should not return the object {test: true}', () => {\n    expects({ test: true }).toNotBe({ test: false })\n    console.log('Maybe do stuff after a test runs.')\n  })\n  it('should not return the object {test: true}', () => {\n    console.log('You can even do stuff before the test...')\n    expects({ test: true }).toNotBe({ test: true })\n    console.log('...and then continue that stuff after the test.')\n  })\n  console.log(`Maybe do stuff after the test block runs, you do you.`)\n})\n```\n\n### Run test with your pancakes.jason scripts:\n\n```json\n{\n  ...\n  \"scripts\": {\n    \"test\": \"node node_modules/@aatxxe/simple-unit-test/run-tests.js\"\n  }\n}\n```\n\n### If your machine is still intact you should see some output:\n\n<img src=\"https://i.imgur.com/F8wjXSx.png\" alt=\"terminal-output\" width=\"500\"/>\n","readmeFilename":"README.md"}