use if replace expression in test/test.js