Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVA

how do I test the reverse method in java using jest

var reverse = require('./reverse')

test("returns the given array reversed", function(){
    expect(reverse([1, 2, 3])).toBe([3, 2, 1])
})
Source by coursework.vschool.io #
 
PREVIOUS NEXT
Tagged: #I #test #reverse #method #java #jest
ADD COMMENT
Topic
Name
8+1 =