{"_id":"@bmanley91/wait-for","_rev":"5-81c3e1940e1233a62adabfe43d8d914c","name":"@bmanley91/wait-for","dist-tags":{"latest":"1.0.0"},"versions":{"0.0.1":{"name":"@bmanley91/wait-for","version":"0.0.1","description":"Wait for is a testing utility used for when a test needs to wait for a condition to become true. It will repeadely call a function until the supplied condition becomes true.","main":"index.js","scripts":{"build":"babel src -d lib","build-and-test":"npm run check && npm run build && npm run test","check":"eslint src/","test":"mocha --require @babel/register test/*.js --timeout 10000"},"repository":{"type":"git","url":"git+https://github.com/bmanley91/wait-for.git"},"author":{"name":"Brian Manley","email":"brian.manley91@gmail.com"},"license":"MIT","bugs":{"url":"https://github.com/bmanley91/wait-for/issues"},"homepage":"https://github.com/bmanley91/wait-for#readme","dependencies":{},"devDependencies":{"@babel/cli":"^7.4.4","@babel/core":"^7.4.4","@babel/node":"^7.2.2","@babel/plugin-transform-runtime":"^7.4.4","@babel/preset-env":"^7.4.4","@babel/register":"^7.4.4","@babel/runtime":"^7.4.4","chai":"^4.2.0","eslint":"^5.16.0","mocha":"^6.1.4","sinon":"^7.3.2","sinon-chai":"^3.3.0"},"gitHead":"3597c964c6b4644d0ce892350f6c37900439ee39","_id":"@bmanley91/wait-for@0.0.1","_nodeVersion":"6.10.0","_npmVersion":"6.9.0","dist":{"integrity":"sha512-AtpoJIjV8saO3az2PlfK6CWhuziqx2wN45T2mnQPQUwHneEB95q0pK7P+WFr0hgCNgzzgYqbIG9qq0wcqznw+g==","shasum":"4a114cd02d563bb259664d57878b72c63fed21ea","tarball":"https://registry.npmjs.org/@bmanley91/wait-for/-/wait-for-0.0.1.tgz","fileCount":7,"unpackedSize":5351,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJc0dsDCRA9TVsSAnZWagAAwtsP/Aw47u1fsDi/msngeh1Q\nQ5FpgD4lL/zIdpS5lM60iSdJ1JCh4Z1YrLiUQjSzZE1RTpWJkBe6Kof6FlJ4\nLmQpFY5LBFZKdKcQllFpaGaU5tdPCtAnFeT4gmNZHCi2Duo3PTlZXbACkorx\nNd70IVx1l8xmWNf/jE00GJyo7Djc9L79K+s9rPVKJXYSxhP6B5wU243Ur2QB\n40OTGiJxxhN5IHPSUtlqJKwRO/NUYZR9Q5oGLZ8ZU8otedCK1kPQef3Kktk0\nf2QTCIfdQU8vfHkuiZLE+q+VIXPbfDMAKRtQwLiswpt6Rw8Fbauhi71/Ltii\nNNd11m1w4ct6IOu5Wd0DaTR8cu1CfKci3jLfrt0WS+1c28dwi0/WU6yqGFnj\nOy2STi8lN8+AY/Q6HT9Gn4yann4VaTT7FXtx5f1BO6Z+TP45TsjdzIgy/49l\nWAxJ5Ns2p9kKqIdCa8xMn4AQCv95Z1vRfmORHqCuiKm2/TligZe1jQaZP29S\njTPO9NZXYDre1yhWRB+Jap7+QaXY/G6dA20EX81YDt28pf0IrUyjjPR+TCMf\nkdQpkxwt2HRBbNGwFy7ujPJLRCHrbQdntavlOELEWFDivcL4xPwgTpl+hbaN\nIfLBZV5CETYzsTAsi2DgTXwz2e/yH/CdRRK1lZ9hJEz+fno8HOhQItwhbtMO\nAqaS\r\n=Hl3j\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCpdLDyEo4S+MSbDgxdD/PPfLMzwhBhq3w6e3DzVpB1YwIgeKzSr3XZjX3dxbXHVJz+2FT7wW3ijxJ6KmzFGAN6lRA="}]},"maintainers":[{"name":"bmanley91","email":"brian.manley91@gmail.com"}],"_npmUser":{"name":"bmanley91","email":"brian.manley91@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/wait-for_0.0.1_1557256962499_0.9600343194533723"},"_hasShrinkwrap":false},"0.0.2":{"name":"@bmanley91/wait-for","version":"0.0.2","description":"Wait for is a testing utility used for when a test needs to wait for a condition to become true. It will repeadely call a function until the supplied condition becomes true.","main":"lib/index.js","scripts":{"build":"babel src -d lib","build-and-test":"npm run check && npm run build && npm run test","check":"eslint src/","test":"mocha --require @babel/register test/*.js --timeout 10000"},"repository":{"type":"git","url":"git+https://github.com/bmanley91/wait-for.git"},"author":{"name":"Brian Manley","email":"brian.manley91@gmail.com"},"license":"MIT","bugs":{"url":"https://github.com/bmanley91/wait-for/issues"},"homepage":"https://github.com/bmanley91/wait-for#readme","dependencies":{},"devDependencies":{"@babel/cli":"^7.4.4","@babel/core":"^7.4.4","@babel/node":"^7.2.2","@babel/plugin-transform-runtime":"^7.4.4","@babel/preset-env":"^7.4.4","@babel/register":"^7.4.4","@babel/runtime":"^7.4.4","chai":"^4.2.0","eslint":"^5.16.0","mocha":"^6.1.4","sinon":"^7.3.2","sinon-chai":"^3.3.0"},"gitHead":"6dcf050c053ca17a5e45c164bf03ad0a07787da0","_id":"@bmanley91/wait-for@0.0.2","_nodeVersion":"6.10.0","_npmVersion":"6.9.0","dist":{"integrity":"sha512-/aI62Rq15imgTYDdrKLORjgWUCbgpKSF6Cr47C3D8sz3K6VbQdVTdQK73E+XAV5ew6qrltrk2qbKqAGMw1V1Hg==","shasum":"45b1e4f13ee3425da476f3114cd03f61e3b30bce","tarball":"https://registry.npmjs.org/@bmanley91/wait-for/-/wait-for-0.0.2.tgz","fileCount":8,"unpackedSize":7890,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJc0d8yCRA9TVsSAnZWagAA0N4P/0DolWI+ilDpjdGpXo1L\nOcuy9q4fOSvd1sTPNjzvXxab+mkpC9EPR8xugsKUJjiDFq9p8KKVcZ6IoSS4\nMtkPLq7Z1kNUbF99hwmkUn0G8/Ks8TyoXLAH9HbrAhMTMy6oftmQAE91d5Wl\nBJPtmT/DZHI/aoL+AGU+M81Jx4deMDDuO3BZFROj86M5Kb7CF3FRY0iFxAvw\nVcPzNxaUillkWthBKhjKTeCWZL7at3xf+IDQcJZlKOThav9XEGlE9YcY8Boy\nnOhPqzSZsszJuKv1aZiDOvlVYXEwbyPlpY992LvV87rnuWmfaQZawyfuvgYC\nPfdPUz1J9gqQACk8frx3Dg8wkFEAbZZxM+KFKzYh8W11p6UBkZyGpmoF/kHo\neKxYSrjPm249c2AQAEee8tP12EJPy1eS0k3en0zFQ/hl2CBl3Tx0T2qq50ZX\nQrt/TL4nyoBYconBidyFmeiMpAx/hNMhhZE3a3JozbuP18UGNIAZFdTZ1Pci\nl+bofbltnaHzEOFwsUoU+5z1cXx4Lvs8tw2wuS0nz7ypolH8Oz1cX1H6nvVY\n7cQiC0EM6tdcek8mXKvLrRmHYlExYnhduvzPPotpJcvdsWag5h2qwyASVc9o\n7lZEbOzvbCmJjoMspboOg8Ek4zr+O6JWYx7UP4wMGDYblvbQyTNptoATh/MZ\n878d\r\n=9E0w\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCKgx8X5nt7X7942tU8S6U6U/uW/3aQ+ti/z3Vf+N7vRwIhALDhTDdOs6Mnvkwj08yfMs52SNtvxOIB5kU/N3oeiN7f"}]},"maintainers":[{"name":"bmanley91","email":"brian.manley91@gmail.com"}],"_npmUser":{"name":"bmanley91","email":"brian.manley91@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/wait-for_0.0.2_1557258033925_0.39655323623318117"},"_hasShrinkwrap":false},"0.0.3":{"name":"@bmanley91/wait-for","version":"0.0.3","description":"A testing library that waits for the given function to return an expected condition.","main":"lib/index.js","scripts":{"build":"babel src -d lib","build-and-test":"npm run check && npm run build && npm run test","clean":"rimraf lib","check":"eslint src/","prepublish":"npm run clean && npm run build-and-test","test":"mocha --require @babel/register test/*.js --timeout 10000"},"repository":{"type":"git","url":"git+https://github.com/bmanley91/wait-for.git"},"author":{"name":"Brian Manley","email":"brian.manley91@gmail.com"},"license":"MIT","bugs":{"url":"https://github.com/bmanley91/wait-for/issues"},"homepage":"https://github.com/bmanley91/wait-for#readme","dependencies":{},"devDependencies":{"@babel/cli":"^7.4.4","@babel/core":"^7.4.4","@babel/node":"^7.2.2","@babel/plugin-transform-runtime":"^7.4.4","@babel/preset-env":"^7.4.4","@babel/register":"^7.4.4","@babel/runtime":"^7.4.4","chai":"^4.2.0","eslint":"^5.16.0","mocha":"^6.1.4","rimraf":"^2.6.3","sinon":"^7.3.2","sinon-chai":"^3.3.0"},"keywords":["test","wait","waiting","testing"],"gitHead":"5f54f0f574db79d02460a82d7ed5fb364f0e93ca","_id":"@bmanley91/wait-for@0.0.3","_nodeVersion":"6.10.0","_npmVersion":"6.9.0","dist":{"integrity":"sha512-4T0z23zipa3vH2YpIWLzzbBJWq9gaM98yMK5RfbrpmWX4hdonIxjvPcBdm2Vo2l2erJYw1rGSpvFNqeyszjZTQ==","shasum":"cbf9095807b490b7abaac8b10e5b678b30fb4f6b","tarball":"https://registry.npmjs.org/@bmanley91/wait-for/-/wait-for-0.0.3.tgz","fileCount":8,"unpackedSize":8459,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJc0eV2CRA9TVsSAnZWagAAEG8P/A/pKSCDn6QCLDPkG7f1\nLbda+GYTXuKCukLNDlern1ziRzFNDMq74EUShfDD74LDpYeW5fn7G5b3yvxU\ntpeyqtlRhzpEXGcFyWbumefdrePh/tF3AMMb43DjQtxM0OfAEkzWeCW+IvOL\nHARVU5iufEsaFMRNLFiXlEubH6RIcFsOjXC73iiDJR3yomlmK0lVMrx7Y2Ht\nLcyBcwmWGWuKfqSRX4PvYp4aYpj/xv5xib9CwfsXbP3gKLepLZK4nTSlQbU4\nsd62EU7I11/w7dYy+Zn5NCwcS2i14eLLAMbPTwEFDMPN1Dx/El53mt7GDQUP\nsZsDTSKxl963j2RIhQl8CCeffZ1lPuqAaNrMILrC/R9rsSoPee8vmKNnRItq\nu6Pj3BcEDFyg7itI1yGLZABy/zmnwlZfUGSCXfIGqiQ/CbMkFeyHvbMVLCoX\nq5NJLlnoexDidPQbUwEAuMC/VMu6Ab47SNxi+kh5THDPV/Wm3OSbe+ePwnBz\nWa/fbQn4NuhbLBbDGOBWRFTJ+cM3ToN1Rkp5KjtoN0LR4QEQuFm6SdUONUFS\noDkwadtnuk8f5C/1e46ONWyAmVp7Ybf0NCMQhag7JVklcKI4vA9WOtFDjN2v\nYxP6X1qLcVkn/rJ48PxBNsJjFsBCFTI5UADaErtblvbJWKy+DLigaTVZWaLt\n6XR6\r\n=05oo\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIFF32NvP0aBR5KI7Q2+b2Tp2bCQ9ltLUow6j+mASRNSYAiEA7neQs9rw7lbyvAeXMIafrVmT1OWIffpDcN3tgWJvb4M="}]},"maintainers":[{"name":"bmanley91","email":"brian.manley91@gmail.com"}],"_npmUser":{"name":"bmanley91","email":"brian.manley91@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/wait-for_0.0.3_1557259637963_0.6385609020766252"},"_hasShrinkwrap":false},"0.0.4":{"name":"@bmanley91/wait-for","version":"0.0.4","description":"A testing library that waits for the given function to return an expected condition.","main":"lib/index.js","scripts":{"build":"babel src -d lib","build-and-test":"npm run check && npm run build && npm run test","clean":"rimraf lib","check":"eslint src/","prepublish":"npm run clean && npm run build-and-test","test":"mocha --require @babel/register test/*.js --timeout 10000"},"repository":{"type":"git","url":"git+https://github.com/bmanley91/wait-for.git"},"author":{"name":"Brian Manley","email":"brian.manley91@gmail.com"},"license":"MIT","bugs":{"url":"https://github.com/bmanley91/wait-for/issues"},"homepage":"https://github.com/bmanley91/wait-for#readme","dependencies":{},"devDependencies":{"@babel/cli":"^7.4.4","@babel/core":"^7.4.4","@babel/node":"^7.2.2","@babel/plugin-transform-runtime":"^7.4.4","@babel/preset-env":"^7.4.4","@babel/register":"^7.4.4","@babel/runtime":"^7.4.4","chai":"^4.2.0","eslint":"^5.16.0","mocha":"^6.1.4","rimraf":"^2.6.3","sinon":"^7.3.2","sinon-chai":"^3.3.0"},"keywords":["test","wait","waiting","testing"],"gitHead":"d0a29d42bc2d695462622226e162ae34afe74705","_id":"@bmanley91/wait-for@0.0.4","_nodeVersion":"6.10.0","_npmVersion":"6.9.0","dist":{"integrity":"sha512-CWqEI0X5zLn46wjXrYB1fdbNNfxcxS7Y/uvDbXQhBS1T8nncbJcE3Bcu7ywhfkevo2lc4WkKq8Ml+97wAH7cYA==","shasum":"4728bf1153027c0384f2a37a7da9696da96de27f","tarball":"https://registry.npmjs.org/@bmanley91/wait-for/-/wait-for-0.0.4.tgz","fileCount":8,"unpackedSize":9166,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJc02r3CRA9TVsSAnZWagAAUk4P/01DlinxpYwW9kQWXpZR\n8KjOew8ENxRNAZAym4gY00T4JMpQlL0HfzYOeDlKgyItB6wZf3tPqksvaIx+\npjsyeCs2UJMgRU70P2TMG/HO/xvSxh5q6nLsK2IiVYI+eONL1u4J1PTx7vWi\n5TM85Kxj56nsZFAbrhdYs3XmhVm4flEPGhQkIZrR0w7oTnXPaBQlycrayQ0e\nIYuhguaO8jO9bJe1CFUI25zFaSCOBoYSecs9zYDjK5/3Wd5RO/blwF4H4gMF\ntJjDepLg2jg+fgXO+/usxEa6b5Crp12S6/gXU06Jk+MwBnDpo2sYaqYdVzTy\nCGctGCZpVxcF6C70TRHuuRmROhHCZGxi0EDJZbCH02yswUMxpOdFtjfgWSVP\nBlRssUH93zgVhbtOumg8qXnrBIlGhMLAz8V2O5qmp001dUGaufvYCLrXjWrQ\nmzRw8SmKPYqlfJrRhKfzCwhzik8oxu7DX4MmAGhxh6qYXxF3uB5xDPHTXqWl\nQkwRAq7ZBnWs/O9wDpyYg2X2y+0jlRQkTzW7zgGeYMDQi+uQJdjCLz8ngjar\n0nBSSeqdSBx4vZM6YUTsoGWK0HszuzRt2EDBfAGt6PlBTEHnYQO6nCBG5yCx\nTnFvJZqTKnd2w5hJesg/Eooh9NgxFzfei9gXPG2W8AOrPnsl9QQ0W3aOgrxO\nuFl1\r\n=hbyB\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDnKx+2B5/IGLES+G0HGYuP7oSOWftgQYMy1U6j5pPSKQIhAPMnOUk7uEd2/6j2jAHxzpN/M1Z3ka6zK/atUEX5rx9w"}]},"maintainers":[{"name":"bmanley91","email":"brian.manley91@gmail.com"}],"_npmUser":{"name":"bmanley91","email":"brian.manley91@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/wait-for_0.0.4_1557359350567_0.6769801029602662"},"_hasShrinkwrap":false},"1.0.0":{"name":"@bmanley91/wait-for","version":"1.0.0","description":"A testing library that waits for the given function to return an expected condition.","main":"lib/index.js","scripts":{"build":"babel src -d lib","build-and-test":"npm run check && npm run build && npm run test","clean":"rimraf lib","check":"eslint src/","prepublish":"npm run clean && npm run build-and-test","test":"mocha --require @babel/register test/*.js --timeout 10000"},"repository":{"type":"git","url":"git+https://github.com/bmanley91/wait-for.git"},"author":{"name":"Brian Manley","email":"brian.manley91@gmail.com"},"license":"MIT","bugs":{"url":"https://github.com/bmanley91/wait-for/issues"},"homepage":"https://github.com/bmanley91/wait-for#readme","dependencies":{},"devDependencies":{"@babel/cli":"^7.4.4","@babel/core":"^7.4.4","@babel/node":"^7.2.2","@babel/plugin-transform-runtime":"^7.4.4","@babel/preset-env":"^7.4.4","@babel/register":"^7.4.4","@babel/runtime":"^7.4.4","chai":"^4.2.0","eslint":"^5.16.0","mocha":"^6.1.4","rimraf":"^2.6.3","sinon":"^7.3.2","sinon-chai":"^3.3.0"},"keywords":["test","wait","waiting","testing"],"gitHead":"05a49e408a4c5409cdb96b41b17a4a29031e3b83","_id":"@bmanley91/wait-for@1.0.0","_nodeVersion":"16.14.0","_npmVersion":"8.3.1","dist":{"integrity":"sha512-2h+RQEsz1CLAfoPPNHpGMfJYfArtROoguy8xoGtoThPgDvekv9Vtoq7jFjjBUp6Cc0WEEISHmtnWU7VnJXmieg==","shasum":"e020fce4985b64495f0d75991a06980cf5d70f42","tarball":"https://registry.npmjs.org/@bmanley91/wait-for/-/wait-for-1.0.0.tgz","fileCount":9,"unpackedSize":9169,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJiDQKKCRA9TVsSAnZWagAAcOAP/2Un+rKbZxVfU4EF0BJ1\neyZupDPmj4Vs11UGx876rqzJ55i6gE2OihSKC6xU1u3fIe7a3zHzITVCcY93\nqWckOmvwPP5geSDGo3w7eaHq70hbuia25u23s6yoXhUtaUju4JMhGITtnaMK\njoKcq7YINrnC868120zjsG+3WztJ5bvsDnBz+zT+LSw/ym+clRpNcE4YbyyM\n0/2iUWwm9Q1ANBmnTrTumsMmABxX8Db2IH5Ue7EVOgC+NJ0IGUtOtr7grBYa\nXGRovmclnCWrqRzpcn81rXFgwlg90ZfjjmOHtRqfA14Vwyj7GkQeD8LPAVeR\nLy4tfVO6uI28AOLh5LawZzCrRdWQ1Kto6Ujic9CNe5IWcLm6nPi4pLVSR1kE\n/ChNK1uZBch0JiifqMDwZF2ZPgZ2owZHtxFgS3IjPfnq+EibJb1NyilVuUfu\nBDRrfRnIaAdqDNvcchZA8gCjAWqrZ7ze7eamfxQ4e6ZV96p+gB2j+nfOrB66\nSPnafJBRLmKPA/mTSL9XS+XHuAeE6uucYLO4ezW2AnnQ7x6PD/BywHrLOh2P\n1zBFaNevZRzEPcQyOLa6CsIOeWN6oXmRaeyejAxNrO75KKY8NExdbREvbton\nBLvePoIsVyZkC51ZLTK0pyUMkMp4TfktdLMgF8GBIRyZ57SDrDePVVm4gXjv\npb/b\r\n=gnnF\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIGp6Y6zqGYr2IVYI/mNcMlj1VE8jpL/mbpdikpEJitanAiBXgbTf4o+8fDF7cUxZ3VtWEZR5z9iAHNEZUwo2ScIv6A=="}]},"_npmUser":{"name":"bmanley91","email":"brian.manley91@gmail.com"},"directories":{},"maintainers":[{"name":"bmanley91","email":"brian.manley91@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/wait-for_1.0.0_1645019786108_0.9454428781832913"},"_hasShrinkwrap":false}},"time":{"created":"2019-05-07T19:22:42.472Z","0.0.1":"2019-05-07T19:22:42.622Z","modified":"2022-04-04T19:51:40.474Z","0.0.2":"2019-05-07T19:40:34.061Z","0.0.3":"2019-05-07T20:07:18.127Z","0.0.4":"2019-05-08T23:49:10.683Z","1.0.0":"2022-02-16T13:56:26.439Z"},"maintainers":[{"name":"bmanley91","email":"brian.manley91@gmail.com"}],"description":"A testing library that waits for the given function to return an expected condition.","homepage":"https://github.com/bmanley91/wait-for#readme","repository":{"type":"git","url":"git+https://github.com/bmanley91/wait-for.git"},"author":{"name":"Brian Manley","email":"brian.manley91@gmail.com"},"bugs":{"url":"https://github.com/bmanley91/wait-for/issues"},"license":"MIT","readme":"# wait-for\nWait for is a testing utility used for when a test needs to wait for a condition to become true. It will repeadely call a function until the supplied condition becomes true.\n\n## Installation \nInstall with `npm install --save @bmanley91/wait-for`\n\n## Usage\n`waitFor` is called with three parameters:\n* `call` - The function to call. This function can be async.\n* `condition` - A syncronous function that returns a boolean.\n* `ms` - The number of miliseconds to wait before timing out.\n\n`waitFor` resolves to the return value of `call` if the expected `condition` is met. Otherwise it rejects with a Timeout Error.\n\n### Example\nThe following code will repeatedly call `makeRestCall` until a status code of [429](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/429) is returned or 30 seconds has passed.\n```\nasync function makeRestCall() {\n    // Make a call to an external API.\n    // Returns a body with a status code.\n}\n\nconst expectedStatusCode = 429;\nconst result = await waitFor(\n    makeRestCall,\n    body => body.statusCode === expectedStatusCode,\n    30000\n);\n```\n\nTo call a function with the same parameters repeatedly, an arrow function containing the function to be called can be used.\n```\nasync function makeRestCall(url, body) {\n    // Make a call to an external API.\n    // Returns a body with a status code.\n}\n\nconst targetUrl = \"foo.bar\"\nconst body = { param: \"thing\" };\n\nconst expectedStatusCode = 429;\nconst result = await waitFor(\n    async () => makeRestCall(targetUrl, body),\n    body => body.statusCode === expectedStatusCode,\n    30000\n);\n```\n\n## Publishing Changes\nTo publish changes increment the version number appropriately. Then, run `npm publish`. NPM will automattically run the `prepublish` script to assure the code compiles and that tests pass.\n","readmeFilename":"README.md","keywords":["test","wait","waiting","testing"]}