Closed patrickjmcd closed 6 years ago
Changes Missing Coverage | Covered Lines | Changed/Added Lines | % | ||
---|---|---|---|---|---|
src/tag/index.js | 2 | 10 | 20.0% | ||
<!-- | Total: | 2 | 10 | 20.0% | --> |
Totals | |
---|---|
Change from base Build 61: | -0.2% |
Covered Lines: | 415 |
Relevant Lines: | 793 |
looks good, just a couple of changes.
if (typeof keepAlive === "string")
throw new Error(`Tag expected keepAlive of type <number> instead got type <${typeof keepAlive}>`);
if (keepAlive < 0 || !Number.isInteger(keepAlive))
throw new Error(`Tag expected keepAlive to be a positive integer, instead got ${keepAlive}`);
Sure thing. I'll get to work on that this morning.
I'm thinking I don't need the lines
const { stage_write } = this.state.tag;
if (!stage_write) this.state.tag.value = newValue;
because if a write is staged, the value will be changed, right?
This looks good. Go ahead and fix the linter issues to ensure Travis passes the build and Ill pull and release it 😄
Description, Motivation, and Context
In order to keep values current, implement a KeepAlive event to periodically (but infrequently) update the stored value of the tag based on a keepAlive property of the tag.
How Has This Been Tested?
All tests pass, functional test completed
Types of changes
Checklist:
[WIP] Some awesome PR title
)Related Issue
15