 helpers = if typeof require is 'undefined' then window.viewHelpers else require './view_helper'
 
-QUnit.module 'Batman.View value bindings',
+QUnit.module 'Batman.View value bindings'
+
 asyncTest 'it should allow arbitrary attributes to be bound', 2, ->
   source = '<div data-bind-foo="one" data-bind-data-bar="two" foo="before"></div>'
   helpers.render source,

    <input type="radio" data-bind="ad.published" name="published" value="true"/>
  '''

  context = Batman
    ad: Batman()

  helpers.render source, context, (node) ->
    hidden = node[0]
    published = node[1]

    ok !published.checked
    ok hidden.checked

    strictEqual context.get('ad.published'), false
    context.set 'ad.published', true
    ok published.checked
    ok !hidden.checked

    hidden.checked = true
    helpers.triggerChange hidden
    equal context.get('ad.published'), false

    QUnit.start()

    [context, adapter] = getMockModel()
    ok !adapter.defaultRequestOptions.formData

    helpers.render '<input type="file" data-bind="fileAttributes"></input>', false, context, (node, view) ->
      helpers.triggerChange(node.childNodes[0])
      strictEqual view.fileAttributes, undefined
      QUnit.start()

  asyncTest 'it should bind the value of file type inputs with the "multiple" flag', 2, ->
    [context, adapter] = getMockModel()
    ok !adapter.defaultRequestOptions.formData

    helpers.render '<input type="file" data-bind="fileAttributes" multiple="multiple"></input>', false, context, (node, view) ->
      helpers.triggerChange(node.childNodes[0])
      deepEqual view.fileAttributes, []
      QUnit.start()

  asyncTest 'it should bind the value of file type inputs when they are proxied', 2, ->
