aboutsummaryrefslogtreecommitdiff
path: root/test
AgeCommit message (Collapse)Author
8 daysMerge tag '3.0.1' from mittHEADmasterMarin Ivanov
2023-07-04apply prettier formatting to all filesJason Miller
2021-06-22Add test for #124Jason Miller
2021-06-22Stronger typing (#114)iyegoroff
* improved typing * upd readme * upd readme * upd test & readme * removed magic 1 * removed ts-toolbelt dependency
2020-07-15Merge branch 'expose-all' of https://github.com/jaylinski/mittJason Miller
2020-07-15Add generic types and update tests (#107)Jack Franklin
* Add generic types and update tests * Add generic types to `on`, `off` and `emit` to enable some nicer TS usage if you specify what type you're expecting from the `EventData`. * Move the tests to be TypeScript source. This will help catch errors in the tests if there are any type errors. * Create a new test to test the generic types and make sure they pass and error when expected. * Upgrade to Mocha 8. * Did some tidying up of the package.json scripts. * Tweak TS setup to validate tests * Fix d.ts generation and tests Co-authored-by: Jason Miller <[email protected]>
2020-06-03Expose `all` propertyJakob Linskeseder
Relates to #70 #72 #102
2020-05-27Export Mitt types for TS consumers (#101)Jack Franklin
* Export Mitt types for TS consumers * Add rudimentary tests for exported TS types * Run tests against the generated output instead of src
2020-05-26Update all dependenciesJason Miller
2020-05-26Add tests for duplicate listenersJason Miller
2020-05-26Migrate to TypeScript and use Map (#99)Jack Franklin
Migrate to TypeScript & Microbundle, move to Map for event handler storage
2019-04-26Rename {mitt => nitt}Marin Ivanov
2017-04-17fix failing test from before removal of case normalizationJason Miller
2017-02-25Merge branch 'agudulin-master' into tunnckoCore-refactorJason Miller
# Conflicts: # src/index.js # test/index.js
2017-02-25Use sinon-chai methods for assertionsJason Miller
2017-01-18remove "drop support for emitting multiple args" thing as per ↵tunnckoCore
https://github.com/developit/mitt/pull/19#issuecomment-273344689
2017-01-17fix: switch Set with array; update tests; drop toLowerCase()tunnckoCore
2017-01-17add editorconfig, fix original identationtunnckoCore
2017-01-17refactor: fixes #2, #6, #12 and #13tunnckoCore
2017-01-16Fixes #9: use Object.create(null) over {}Alexander Gudulin
2017-01-14Initial commit! 🚀Jason Miller