Should be a cleaner TS implementation than my previous PR (thanks for the feedback and help using Namespaces as types). I'm using Sinon spies in the tests, and because of that found I didn't need to use the module importer mock you mentioned (as rather than testing all of css-blocks in the unit tests I'm just testing what this package takes in and puts out, as well as that the created functions are called).
Fixes #398
Should be a cleaner TS implementation than my previous PR (thanks for the feedback and help using Namespaces as types). I'm using Sinon spies in the tests, and because of that found I didn't need to use the module importer mock you mentioned (as rather than testing all of css-blocks in the unit tests I'm just testing what this package takes in and puts out, as well as that the created functions are called).
Code test coverage is 100%, which is nice.