expected.js is a copy of output generated by r.js, so the missing newline is expected per existing implementation.  build.js is basically a clone of ../build.js, which also lacks the trailing newline.  This seems to be the expected convention in this code base.