Skip to content
This repository has been archived by the owner on Mar 10, 2020. It is now read-only.

test: additional add* validation tests #376

Merged
merged 3 commits into from
Nov 26, 2018
Merged

test: additional add* validation tests #376

merged 3 commits into from
Nov 26, 2018

Conversation

alanshaw
Copy link
Contributor

@alanshaw alanshaw commented Oct 23, 2018

refs #292

})
})

it('should not be able to add a non-Buffer TypedArray', (done) => {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should this test include more of the different typed arrays?

image

https://developer.mozilla.org/en-US/docs/Web/JavaScript/Typed_arrays#Typed_array_views

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think that since these all inherit from TypedArray then testing with just one is good enough, the point here is to ensure the API is feeding back with an appropriate message and not passing the input further down the stack where it'll cause an error that doesn't communicate the real problem.

@alanshaw alanshaw changed the title [WIP] test: additional add* tests test: additional add* validation tests Nov 12, 2018
@alanshaw alanshaw changed the title test: additional add* validation tests [WIP] test: additional add* validation tests Nov 12, 2018
License: MIT
Signed-off-by: Alan Shaw <alan.shaw@protocol.ai>
License: MIT
Signed-off-by: Alan Shaw <alan.shaw@protocol.ai>
@alanshaw alanshaw changed the title [WIP] test: additional add* validation tests test: additional add* validation tests Nov 26, 2018
License: MIT
Signed-off-by: Alan Shaw <alan.shaw@protocol.ai>
@alanshaw alanshaw merged commit 204cce4 into master Nov 26, 2018
@alanshaw alanshaw deleted the test/add-tests branch November 26, 2018 11:31
@ghost ghost removed the in progress label Nov 26, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants