Skip to content

Commit

Permalink
Merge pull request #7 from viniciusavieira/test/coverage-improve
Browse files Browse the repository at this point in the history
Test/coverage improve
  • Loading branch information
viniciusavieira authored Jul 24, 2019
2 parents 1eca6fa + 2f95346 commit 276e08b
Show file tree
Hide file tree
Showing 10 changed files with 114 additions and 196 deletions.
6 changes: 4 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,11 +1,13 @@
# swipeJsListener
A small class to listen swipe events and invoke callbacks to them

[![npm version](https://badge.fury.io/js/swipe-js-listener.svg)](https://badge.fury.io/js/swipe-js-listener) [![Build Status](https://travis-ci.org/viniciusavieira/swipeJsListener.svg?branch=master)](https://travis-ci.org/viniciusavieira/swipeJsListener) [![Coverage Status](https://coveralls.io/repos/github/viniciusavieira/swipeJsListener/badge.svg)](https://coveralls.io/github/viniciusavieira/swipeJsListener) [![Known Vulnerabilities](https://snyk.io/test/github/viniciusavieira/swipeJsListener/badge.svg?targetFile=package.json)](https://snyk.io/test/github/viniciusavieira/swipeJsListener?targetFile=package.json) [![Greenkeeper badge](https://badges.greenkeeper.io/viniciusavieira/swipeJsListener.svg)](https://greenkeeper.io/)
[![npm version](https://badge.fury.io/js/swipe-js-listener.svg)](https://badge.fury.io/js/swipe-js-listener) [![Build Status](https://travis-ci.org/viniciusavieira/swipeJsListener.svg?branch=master)](https://travis-ci.org/viniciusavieira/swipeJsListener) [![Coverage Status](https://coveralls.io/repos/github/viniciusavieira/swipeJsListener/badge.svg)](https://coveralls.io/github/viniciusavieira/swipeJsListener) [![Known Vulnerabilities](https://snyk.io/test/github/viniciusavieira/swipeJsListener/badge.svg?targetFile=package.json)](https://snyk.io/test/github/viniciusavieira/swipeJsListener?targetFile=package.json) [![Greenkeeper badge](https://badges.greenkeeper.io/viniciusavieira/swipeJsListener.svg)](https://greenkeeper.io/) [![Conventional Commits](https://img.shields.io/badge/Conventional%20Commits-1.0.0-yellow.svg)](https://conventionalcommits.org)


Usage:

This can be used with React and any other framework/lib you may want, at the bottom line is a simple class that invoke callbacks.
This is usefull if you want detect some interaction with screen, like and open menu that on swipe must be closed, all using JS.

Install with Npm

```
Expand Down
4 changes: 4 additions & 0 deletions changelog.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# changelog

### 1.3.1
- Improved test coverage.
- Added Conventional Commits Badge.

### 1.3.0
- Improved test coverage.

Expand Down
68 changes: 34 additions & 34 deletions coverage/clover.xml
Original file line number Diff line number Diff line change
@@ -1,44 +1,44 @@
<?xml version="1.0" encoding="UTF-8"?>
<coverage generated="1563973610653" clover="3.2.0">
<project timestamp="1563973610653" name="All files">
<coverage generated="1563977285445" clover="3.2.0">
<project timestamp="1563977285445" name="All files">
<metrics statements="35" coveredstatements="31" conditionals="27" coveredconditionals="17" methods="6" coveredmethods="5" elements="68" coveredelements="53" complexity="0" loc="35" ncloc="35" packages="1" files="1" classes="1"/>
<file name="swipeJsListener.js" path="/home/pismo-vinicius/github/swipeJsListener/src/swipeJsListener.js">
<metrics statements="35" coveredstatements="31" conditionals="27" coveredconditionals="17" methods="6" coveredmethods="5"/>
<line num="3" count="5" type="stmt"/>
<line num="4" count="5" type="stmt"/>
<line num="5" count="5" type="stmt"/>
<line num="6" count="5" type="stmt"/>
<line num="7" count="5" type="stmt"/>
<line num="8" count="5" type="stmt"/>
<line num="9" count="4" type="stmt"/>
<line num="10" count="4" type="stmt"/>
<line num="13" count="4" type="stmt"/>
<line num="14" count="4" type="stmt"/>
<line num="20" count="4" type="stmt"/>
<line num="21" count="4" type="cond" truecount="2" falsecount="3"/>
<line num="23" count="4" type="stmt"/>
<line num="24" count="4" type="stmt"/>
<line num="26" count="4" type="cond" truecount="2" falsecount="0"/>
<line num="28" count="2" type="cond" truecount="4" falsecount="0"/>
<line num="29" count="1" type="cond" truecount="1" falsecount="1"/>
<line num="33" count="2" type="cond" truecount="4" falsecount="0"/>
<line num="34" count="1" type="cond" truecount="1" falsecount="1"/>
<line num="38" count="4" type="stmt"/>
<line num="39" count="4" type="stmt"/>
<line num="46" count="5" type="stmt"/>
<line num="47" count="5" type="stmt"/>
<line num="48" count="5" type="stmt"/>
<line num="49" count="5" type="stmt"/>
<line num="50" count="5" type="stmt"/>
<line num="51" count="5" type="stmt"/>
<line num="57" count="5" type="stmt"/>
<line num="58" count="5" type="stmt"/>
<line num="59" count="5" type="stmt"/>
<line num="60" count="5" type="stmt"/>
<line num="61" count="5" type="stmt"/>
<line num="62" count="5" type="stmt"/>
<line num="68" count="1" type="cond" truecount="3" falsecount="1"/>
<line num="69" count="1" type="stmt"/>
<line num="71" count="0" type="cond" truecount="0" falsecount="4"/>
<line num="72" count="0" type="stmt"/>
<line num="73" count="0" type="stmt"/>
<line num="76" count="0" type="stmt"/>
<line num="14" count="4" type="cond" truecount="2" falsecount="3"/>
<line num="15" count="4" type="stmt"/>
<line num="16" count="4" type="stmt"/>
<line num="17" count="4" type="cond" truecount="2" falsecount="0"/>
<line num="18" count="2" type="cond" truecount="4" falsecount="0"/>
<line num="19" count="1" type="cond" truecount="1" falsecount="1"/>
<line num="22" count="2" type="cond" truecount="4" falsecount="0"/>
<line num="23" count="1" type="cond" truecount="1" falsecount="1"/>
<line num="26" count="4" type="stmt"/>
<line num="27" count="4" type="stmt"/>
<line num="30" count="5" type="stmt"/>
<line num="31" count="5" type="stmt"/>
<line num="32" count="5" type="stmt"/>
<line num="33" count="5" type="stmt"/>
<line num="34" count="5" type="stmt"/>
<line num="35" count="5" type="stmt"/>
<line num="38" count="5" type="stmt"/>
<line num="39" count="5" type="stmt"/>
<line num="40" count="5" type="stmt"/>
<line num="41" count="5" type="stmt"/>
<line num="42" count="5" type="stmt"/>
<line num="43" count="5" type="stmt"/>
<line num="46" count="1" type="cond" truecount="3" falsecount="1"/>
<line num="47" count="1" type="stmt"/>
<line num="49" count="0" type="cond" truecount="0" falsecount="4"/>
<line num="50" count="0" type="stmt"/>
<line num="51" count="0" type="stmt"/>
<line num="54" count="0" type="stmt"/>
</file>
</project>
</coverage>
Loading

0 comments on commit 276e08b

Please sign in to comment.