It requires time, and I am always overscheduled
My code is rock solid! I do not need unit tests.
Covers a single piece of code (usually an object or a function) tested the behavior without external resources
demonstrate that different parts of a system work together in the real-life environment. They validate complex scenarios (we can think of integration tests as a user performing some high-level operation within our system), and usually require external resources, like databases or web servers, to be present
Arrange, Act, Assert
Test Driven Development
Behavior Driven Development
Terdapat dua array A[] dan B[] berisi angka integer
Buatlah fungsi untuk melakukan check apakah array B adalah subarray dari array A!
describe('#subArrayOf, when passed "A = [1, 2, 0, 5, 8, 1, 3] and B = [3, 0, 5, 1]"', () => {
it('should returns true', () => {
// Arrange
// Act
// Assert
})
})