Skip to content

commonform/commonform-get-form

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

var getForm = require('commonform-get-form')
var assert = require('assert')

getForm(
  'commonform.org',
  'kemitchell',
  'test',
  '1e',
  function (error, form) {
    assert.deepStrictEqual(
      form,
      { content: ['This form is used for testing commonform.org.'] }
    )
  }
)

getForm(
  'commonform.org',
  'kemitchel',
  'nonexistent',
  '1e',
  function (error, form) {
    assert.equal(form, false)
  }
)

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published