Sha256: 4c61798163b5b8b4eb171ef5c92b00cdd6d7ed2083d81ee67206a2f3e0ea74a2

Contents?: true

Size: 637 Bytes

Versions: 19

Compression:

Stored size: 637 Bytes

Contents

Path = require 'path'
Codo = require '../../lib/codo'

describe 'Codo', ->

  it 'parses project', ->
    environment = Codo.parseProject(Path.join __dirname, '../_templates/example')
    
    expect(environment.allFiles().map (file) -> file.inspect().file).toEqual [
      'src/angry_animal.coffee',
      'src/animal.coffee',
      'src/lion.coffee',
      'src/over_documented_class.coffee',
      'src/over_documented_mixin.coffee'
    ].map (file) -> Path.normalize file

    expect(environment.allExtras().map (e) -> e.name).toEqual [
      'README.md', 'CHANGELOG'
    ]

    expect(environment.options.readme).toEqual 'README.md'

Version data entries

19 entries across 19 versions & 1 rubygems

Version Path
ela-4.1.6 node_modules/codo/spec/lib/codo_spec.coffee
ela-4.1.5 node_modules/codo/spec/lib/codo_spec.coffee
ela-4.1.4 node_modules/codo/spec/lib/codo_spec.coffee
ela-4.1.3 node_modules/codo/spec/lib/codo_spec.coffee
ela-4.1.2 node_modules/codo/spec/lib/codo_spec.coffee
ela-4.1.1 node_modules/codo/spec/lib/codo_spec.coffee
ela-4.1.0 node_modules/codo/spec/lib/codo_spec.coffee
ela-4.0.0 node_modules/codo/spec/lib/codo_spec.coffee
ela-3.4.3 node_modules/codo/spec/lib/codo_spec.coffee
ela-3.4.2 node_modules/codo/spec/lib/codo_spec.coffee
ela-3.4.0 node_modules/codo/spec/lib/codo_spec.coffee
ela-3.3.1 node_modules/codo/spec/lib/codo_spec.coffee
ela-3.3.0 node_modules/codo/spec/lib/codo_spec.coffee
ela-3.2.0 node_modules/codo/spec/lib/codo_spec.coffee
ela-3.1.1 node_modules/codo/spec/lib/codo_spec.coffee
ela-3.1.0 node_modules/codo/spec/lib/codo_spec.coffee
ela-3.0.0 node_modules/codo/spec/lib/codo_spec.coffee
ela-2.0.0 node_modules/codo/spec/lib/codo_spec.coffee
ela-1.1.0 node_modules/codo/spec/lib/codo_spec.coffee