ungoldman / module-init

:checkered_flag: Create a new node module with all the right stuff.
ISC License
71 stars 8 forks source link

Include example test in test/index.js #14

Closed Flet closed 9 years ago

Flet commented 9 years ago

It would be nice to include a simple test in test/index.js instead of being blank.

Maybe as simple as:

var test = require('tape')

test('Example Test', function (t) {
  t.plan(1)
  t.error('No tests defined.')
})

I realize this is complicated by the fact that a module could be standard or semistandard too... :(

bcomnes commented 9 years ago

Run through (semi)standard-format?

ungoldman commented 9 years ago

We could modify the template to handle each case. Would need to handle conditionals better (this would help fix #15 too).

Flet commented 9 years ago

Hmm, instead of dealing with this in the template, could it do this:

"format": "{{pkgLinter}} -F"
ungoldman commented 9 years ago

that makes sense too. are the formatters in good shape right now? standard -F was still missing most cases last I checked (but may be adequate for something as short as the above case).

ungoldman commented 9 years ago

Working on finally getting this one in.

Flet commented 9 years ago

Nice, thanks!