/**
* @param {string} val
* @return {Object}
*/
var expect = function(val) {
// your code...
};
/**
* expect(5).toBe(5); // true
* expect(5).notToBe(5); // throws "Equal"
*/
var expect = function(val) {
return {
toBe: (value) => {
if (value !== val) {
throw new Error('Not Equal');
} else {
return true;
}
},
notToBe: (value) => {
if (value === val) {
throw new Error('Equal');
} else {
return true;
}
}
}
};