-
-
Notifications
You must be signed in to change notification settings - Fork 59
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[doc][readme] Does commonjs-assert aim to be an assert module as per CommonJS UT spec? #27
Comments
As a random bystander, I don't see what's ambiguous about "derived from" in the readme -- in my experience that normally means "based on but with changes" or "a modified copy of", whereas if this was intended to implement or adhere to the spec it would say, well, "implementation of" or "adheres to" (by extension, since it doesn't say so, I would not expect it to implement or adhere to the spec). Besides which, most assertion libraries as far as I've ever heard don't aim to implement any spec at all (though many aim to imitate each other), so it's not necessarily really implementing some other spec and failing to list that other spec. |
Yeah, that's my assumption now; however, would you assume conformity from the current module name? |
Hmm... The name at the top of the readme is just "Assert", which fits with how I found this looking for the browser-compatible implementation that Webpack and Browserify use in place of Node's built-in No strong opinions from me, then. 😉 |
Thanks for pointing it out! I think I got something mixed up at the other day's NPM search. Indeed, even on NPM the package name is just [1] e.g. "An assert module compatible with node.js and browsers, inspired by but better than the CommonJS Unit Testing spec" |
👍 on "better than"; the fact that |
I am more than happy to accept a pull request updating the readme to emphasize that it is a browser implementation of the node.js assert library which is based on the commonjs assert spec |
Kept the package version in case you prefer to increase it via npm, and/or rename the repo before next release. Fixes browserify#27.
Kept the package version in case you prefer to increase it via npm, and/or rename the repo before next release. Fixes browserify#27.
Kept the package version in case you prefer to increase it via npm, and/or rename the repo before next release. Fixes browserify#27.
Kept the package version in case you prefer to increase it via npm, and/or rename the repo before next release. Fixes browserify#27.
Kept the package version in case you prefer to increase it via npm, and/or rename the repo before next release. Fixes #27.
As I found in #26 , the current Readme isn't clear about the intent of this module:
Could you therefor extend that readme statement to clarify whether
commonjs-assert
aims to be an assert module according to the CommonJS Unit Testing 1.0 spec?The module name (Edit: nope, just the repo name and package description) and line 45 of assert.js hint at "yes". Hints at "no" include the other issue's discussion and, more importantly, the code comment for rule 7.3 about RegExps. I can't find any mention of RegExp in the CJS spec.
If "no", to de-confuse about the module name, please add a hint that another spec was used (and if you know which, which), and that results can thus be incompatible with the CJS UT spec.
The text was updated successfully, but these errors were encountered: