Skip to content

Commit

Permalink
Tweaks
Browse files Browse the repository at this point in the history
  • Loading branch information
kevva committed Sep 4, 2016
1 parent ec37545 commit df6194d
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 7 deletions.
3 changes: 0 additions & 3 deletions .editorconfig
Expand Up @@ -10,6 +10,3 @@ insert_final_newline = true
[{package.json,*.yml}]
indent_style = space
indent_size = 2

[*.md]
trim_trailing_whitespace = false
1 change: 1 addition & 0 deletions .gitattributes
@@ -1,2 +1,3 @@
* text=auto
*.ai binary
*.js text eol=lf
8 changes: 4 additions & 4 deletions test.js
@@ -1,13 +1,13 @@
import test from 'ava';
import fn from './';
import m from './';

test('should get brightness', async t => {
const brightness = await fn.get();
const brightness = await m.get();
t.is(typeof brightness, 'number');
});

test('should set brightness', async t => {
await fn.set(0.5);
const brightness = await fn.get();
await m.set(0.5);
const brightness = await m.get();
t.is(Math.round(brightness * 10) / 10, 0.5);
});

0 comments on commit df6194d

Please sign in to comment.