/*!
 * promised-handlebars <https://github.com/nknapp/promised-handlebars>
 *
 * Copyright (c) 2015 Nils Knappmeier.
 * Released under the MIT license.
 */

/* global after */
/* global before */
/* global describe */
// /* global it */
// /* global xdescribe */
/* global xit */

'use strict'

var promisedHandlebars = require('../')
var promiseName = 'global bluebird Promises'

// Chai Setup
var chai = require('chai')
var expect = chai.expect

describe('promised-handlebars:', function () {
  before(function () {
    global.Promise = require('bluebird')
    this.Handlebars = promisedHandlebars(require('handlebars'))
  })
  after(function () {
    Promise.noConflict()
    delete this.Handlebars
  })
  describe('running with ' + promiseName, function () {
    xit('Handlebars.Promise.version should match bluebird package\'s semver', function () {
      // var bluebirdVersion = require('bluebird/package').version
      // The version string provided by require('bluebird').version is out of date in the
      // latest version of the module. For now the test needs to hardcode the value.
      expect(this.Handlebars.Promise.version).to.equal('3.4.0' /* bluebirdVersion */)
    })
  })
  describe('using ' + promiseName, function () {
    require('./default-suite')()
  })
})

@@ -224,16 +224,17 @@
  global 
+x
 it */%0A//
@@ -263,25 +263,24 @@
 /%0A/* global 
-x
 it */%0A%0A'use 
@@ -760,17 +760,16 @@
 ) %7B%0A    
-x
 it('Hand
@@ -852,19 +852,16 @@
  %7B%0A     
- //
  var blu
@@ -915,183 +915,8 @@
 ion%0A
-      // The version string provided by require('bluebird').version is out of date in the%0A      // latest version of the module. For now the test needs to hardcode the value.%0A
     
@@ -970,19 +970,8 @@
 ual(
-'3.4.0' /* 
 blue
@@ -981,19 +981,16 @@
 dVersion
- */
 )%0A    %7D)

Fix unstable test (#36)