Do you have a comparable post (Simple ERC777 token example) for an ERC20 token?
I suggest looking at the following:
When extending OpenZeppelin Contracts ERC20 implementation to create your own ERC20 token then you should unit test any functionality that you are adding.
You can use the tests in OpenZeppelin Contracts repository for inspiration. (thanks @Skyge ) As a minimum, you would ideally test MetaData, supply, minting (if not fixed supply).
If you haven’t already I would look at the Learn guides on testing:
@Skyge hi, that is the test i tried to run and i got the following error message (attached). I have the openzeppelin/contracts installed and am trying to run the tests included.
I have added: Simple ERC20 token example which includes some simple tests based on https://docs.openzeppelin.com/learn/writing-automated-tests#performing-complex-assertions.