Some errors in the Generated Package Spec


#1

I generated a Package using the built-in stuff in the CMD+SHIFT+P menu, and there were a couple of errors in the files - and I don’t mean the clearly purposefully failing test. Maybe they were there for the purposes of teaching? Just in case they weren’t:

  • In the non-view spec file, ‘WorkspaceView’ isn’t require'd at the top so it doesn’t resolve.
  • If the package is named with-a-hyphen, name used in in activatePackage is in camelCase instead of being-hyphenated.

#2

I’ve created a gist that shows the errors and how to fix them:

Spec Package Errors Gist