Skip to content

gitawego/mower-test

Repository files navigation

Mower test

usage

import { Lawn } from './Lawn';
Lawn.schedule(your_script).run();

events: change, warn

const lawn = Lawn.schedule(your_script);
lawn.on('change',(evt)=>{
	console.log(evt.mower);
	// you can get curent position
	console.log(evt.mower.getPosition());
	console.log(evt.data);
});
lawn.on('warn',(evt)=>{
	console.log(evt.warning);
	console.log(evt.mower);
});
lawn.run();

how to test

install dependencies

# if you use yarn
yarn
# otherwise
npm install

test

# test code
yarn test

# coverage
yarn coverage

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published