Skip to content

DenkiYagi/exmock

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

exmock

mocking library for Haxe

WORK IN PROGRESS

install

haxelib git exmock https://github.com/DenkiYagi/exmock.git

usage

final mock = ExMock.mock(YourInterface).setup({
    sayHello: name -> "Hello " + name;
});

mock.object.sayHello("Taro");
mock.object.doSomething(); //thrown "not implemented"

mock.calls.sayHello; // [{name:"Taro"}]
interface YourInterface {
    function sayHello(name:String):String;
    function doSomething():Void;
}

About

mocking library for Haxe

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages