Finished bdd tests for file.js