Update gradient.js

Add test for imported transform