 Bluebird = require('bluebird')
 _ = require('lodash')
+memoize = require('memoizee')
 
 { chai } = require('mochainon')
 chai.use(require('chai-samsam'))

		getInitialOrganization().then (initialOrg) =>
			@initialOrg = initialOrg

exports.givenAnApplication = (beforeFn) ->
	exports.givenInitialOrganization(beforeFn)


			chai.expect(@application.is_for__device_type).to.be.an('object')
			.that.has.property('__id').that.is.a('number')

			getDeviceType(@application.is_for__device_type.__id)
		.then (@applicationDeviceType) =>
			chai.expect(@applicationDeviceType).to.be.an('object')
			.that.has.property('slug').that.is.a('string')
