feat: use options.constants and options.name to generate file [refs #1]
chore: add test for getConstants method