Skip to content

Commit

Permalink
fix(imports): Fix how fluent-arguments are imported
Browse files Browse the repository at this point in the history
  • Loading branch information
lukastaegert committed May 29, 2017
1 parent fd03806 commit 0db96e0
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions src/constructors.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import fa from 'fluent-arguments'
import { createFunc } from 'fluent-arguments'
import { compose, curry, filter, forEach } from 'ramda'

const getArrayFromArrayLikeObject = args => Array.prototype.slice.call(args)
Expand Down Expand Up @@ -68,7 +68,7 @@ export default getConstructorProperties => Target => {

StubOrSpyConstructor.prototype = constructorProps.SourceConstructor.prototype

StubOrSpyConstructor[constructorProps.addMethodsKey] = fa.createFunc(function (
StubOrSpyConstructor[constructorProps.addMethodsKey] = createFunc(function (
methods
) {
methodParams = methods
Expand Down
8 changes: 4 additions & 4 deletions src/index.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import fa from 'fluent-arguments'
import { createArg, createFunc } from 'fluent-arguments'
import { curry } from 'ramda'
import sinon from 'sinon'
import getStubOrSpyConstructor from './constructors'
Expand Down Expand Up @@ -78,14 +78,14 @@ export const getSpyConstructor = getStubOrSpyConstructor(
getSpyConstructorProperties
)

export const getMethodStubs = fa.createFunc(getMethodStubsHandler)
export const getMethodStubs = createFunc(getMethodStubsHandler)

export const returning = fa.createArg({
export const returning = createArg({
args: [ARG_RETURN_VAL],
extendsPrevious: true
})

export const returningThis = fa.createArg({
export const returningThis = createArg({
extra: { returnThis: true },
extendsPrevious: true
})

0 comments on commit 0db96e0

Please sign in to comment.