Update index.js

add truncate -2 test.