"use strict";

const expect = require('chai').expect
const packageSettings = require('./package.json')

const Up = require('./' + packageSettings.main)


describe('The `main` field in package.json', () => {
  it('points to the entry point of the library', () => {
    expect(Up.parseAndRender('It *actually* worked?')).to.equal('<p>It <em>actually</em> worked?</p>')
  })
})


describe('The `version` field in package.json', () => {
  it('matches the version of the library', () => {
    expect(packageSettings.version).to.equal(Up.VERSION)
  })
})

@@ -8,16 +8,46 @@
 rict%22;%0A%0A
+const path = require('path');%0A
 const ex
@@ -396,24 +396,358 @@
 )%0A  %7D)%0A%7D)%0A%0A%0A
+describe('The %60typings%60 field in package.json', () =%3E %7B%0A  it('points to the typings for the entry point of the library', () =%3E %7B%0A    const typingsBasename = path.basename(packageSettings.typings, '.d.ts')%0A    const mainBasename =path.basename(packageSettings.main, '.js')%0A%0A    expect(typingsBasename).to.equal(mainBasename)%0A  %7D)%0A%7D)%0A%0A%0A
 describe('Th

Verify `typings` field in package.json