Skip to content

Commit

Permalink
Final nits
Browse files Browse the repository at this point in the history
Signed-off-by: Rick Waldron <waldron.rick@gmail.com>
  • Loading branch information
rwaldron committed May 22, 2017
1 parent 32c4349 commit 3ac47dc
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 7 deletions.
8 changes: 5 additions & 3 deletions node/tessel-export.js
Original file line number Diff line number Diff line change
Expand Up @@ -274,7 +274,7 @@ class Port extends EventEmitter {

const port = this;
let uart = null;
let spi = null
let spi = null;

priv.set(this, {
get uart() {
Expand Down Expand Up @@ -758,7 +758,7 @@ class Pin extends EventEmitter {
port.command([CMD.GPIO_INT, pin | (mode ? INT_MODES[mode] << 4 : 0)]);
}
}
})
});
}

get resolution() {
Expand Down Expand Up @@ -1805,7 +1805,9 @@ class AP extends EventEmitter {
.then(commitWireless)
.then(restartWifi)
.then(getAccessPointIP)
.then(ip => emitAndCallback('create', this, Object.assign(this.settings, settings, { ip }), callback))
.then(ip => emitAndCallback('create', this, Object.assign(this.settings, settings, {
ip
}), callback))
.catch(error => emitErrorCallback(this, error, callback));
}
}
Expand Down
16 changes: 12 additions & 4 deletions node/test/unit/tessel.js
Original file line number Diff line number Diff line change
Expand Up @@ -4734,9 +4734,13 @@ exports['Tessel.AP'] = {
assignSettingsDirectly(test) {
test.expect(1);

this.tessel.network.ap.settings = { foo: 1 };
this.tessel.network.ap.settings = {
foo: 1
};

test.deepEqual(this.tessel.network.ap.settings, { foo: 1 });
test.deepEqual(this.tessel.network.ap.settings, {
foo: 1
});
test.done();
},

Expand All @@ -4759,7 +4763,9 @@ exports['Tessel.AP'] = {
}
});

const results = Object.assign({ ip }, settings);
const results = Object.assign({
ip
}, settings);

this.tessel.network.ap.on('create', (networkSettings) => {
test.deepEqual(networkSettings, results, 'correct settings');
Expand Down Expand Up @@ -4810,7 +4816,9 @@ exports['Tessel.AP'] = {
}
});

const results = Object.assign({ ip }, settings);
const results = Object.assign({
ip
}, settings);

this.tessel.network.ap.on('create', (networkSettings) => {
test.deepEqual(networkSettings, results, 'correct settings');
Expand Down

0 comments on commit 3ac47dc

Please sign in to comment.