# Flow Javascript Testing -\> Useful functions for FCL

**URL:** https://forum.flow.com/t/flow-javascript-testing-useful-functions-for-fcl/2435
**Category:** ⚙️ Flow SDKs
**Created:** [October 2, 2021, 10:35am UTC](https://forum.flow.com/t/flow-javascript-testing-useful-functions-for-fcl/2435 "2021-10-02T10:35:59Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![Creator](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.flow.com/creator/32/580_2.png) [@Creator](https://forum.flow.com/u/Creator)
#### Post date: [October 2, 2021, 10:35am UTC](https://forum.flow.com/t/flow-javascript-testing-useful-functions-for-fcl/2435/1 "2021-10-02T10:35:59Z")

</div>

Hi Guys

> **[Template Code](https://docs.onflow.org/flow-js-testing/templates/)**
>
> How to manage load Cadence template code

Flow JS Testing functions are very useful to load and organize transactions / script / contracts  
Also to switch from dev / test / prod env, thanks to the addressMap

#### FUNCTIONS

- [getTemplate(file, addressMap, byAddress)](https://docs.onflow.org/flow-js-testing/templates/#gettemplatefile-addressmap-byaddress)
- [getContractCode(name, addressMap)](https://docs.onflow.org/flow-js-testing/templates/#getcontractcodename-addressmap)
- [getTransactionCode(name, addressMap)](https://docs.onflow.org/flow-js-testing/templates/#gettransactioncodename-addressmap)
- [getScriptCode(name, addressMap)](https://docs.onflow.org/flow-js-testing/templates/#getscriptcodename-addressmap)

Would be so nice to get them in FCL

Kind Regards

---

<div class="post-metadata">

### Author: ![flowjosh](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.flow.com/flowjosh/32/362_2.png) [@flowjosh](https://forum.flow.com/u/flowjosh)
#### Post date: [October 12, 2021, 7:57pm UTC](https://forum.flow.com/t/flow-javascript-testing-useful-functions-for-fcl/2435/2 "2021-10-12T19:57:14Z")

</div>

Thanks for the feedback! I’ll tag @MaxStarka and @gregsantos so they can see this. 🙂
