Enforce that activestorage compiled JS is in sync with source code
Enforce that activestorage compiled JS is in sync with source code

(Note: this is effectively the same change that we did for actioncable
in fefc304199503dbd5290e077357ac431e5fd7441 applied to activestorage.)

We have run into issues in the past where the activestorage compiled
javascript bundle got out of sync with the source code. For example, in
880f977925601c3afe125274b5cc95e150341a9f the compiled bundle was
modified in a way that was inconsistent with the results of running
`yarn build` in the activestorage directory. This meant that running
`yarn build` there would produce a dirty git status indicating changes
to the compiled bundle, despite not having made any changes to the
activestorage javascript source code. That particular inconsistency was
fixed in 0e77706dc5d2928e945c34b9ac49ff0807888ba5. However, the same
problem could reoccur.

To address this, I've added a new test to enforce that activestorage's
compiled javascript bundle is in sync with the source code. When the
compiled bundle is in sync with the source code, the test will pass.
However, if the two are not in sync, the test will fail. For example, if
you were to apply the following patch (which only updates the source
code):

```
diff --git a/activestorage/app/javascript/activestorage/index.js b/activestorage/app/javascript/activestorage/index.js
index a340008fb9..a05b7223a5 100644
--- a/activestorage/app/javascript/activestorage/index.js
+++ b/activestorage/app/javascript/activestorage/index.js
@@ -8,4 +8,4 @@ function autostart() {
   }
 }

-setTimeout(autostart, 1)
+setTimeout(autostart, 2)
```
the test would then fail. Thus, the activestorage test suite will now
prevent "the compiled bundle is out of sync" issues going forward.

Erol/rails,schuetzm/rails,BlakeWilliams/rails,yhirano55/rails,esparta/rails,bogdanvlviv/rails,yhirano55/rails,Erol/rails,notapatch/rails,palkan/rails,Edouard-chin/rails,Envek/rails,kddeisz/rails,yahonda/rails,Stellenticket/rails,BlakeWilliams/rails,rails/rails,repinel/rails,MSP-Greg/rails,betesh/rails,joonyou/rails,georgeclaghorn/rails,Edouard-chin/rails,lcreid/rails,mechanicles/rails,eileencodes/rails,palkan/rails,yhirano55/rails,eileencodes/rails,jeremy/rails,iainbeeston/rails,notapatch/rails,eileencodes/rails,yahonda/rails,jeremy/rails,lcreid/rails,esparta/rails,kddeisz/rails,prathamesh-sonpatki/rails,shioyama/rails,yalab/rails,vipulnsward/rails,tgxworld/rails,gauravtiwari/rails,kmcphillips/rails,tjschuck/rails,Envek/rails,repinel/rails,Envek/rails,rails/rails,jeremy/rails,EmmaB/rails-1,tjschuck/rails,MSP-Greg/rails,Vasfed/rails,iainbeeston/rails,jeremy/rails,starknx/rails,yalab/rails,fabianoleittes/rails,schuetzm/rails,betesh/rails,fabianoleittes/rails,mechanicles/rails,shioyama/rails,tjschuck/rails,esparta/rails,vipulnsward/rails,BlakeWilliams/rails,EmmaB/rails-1,yahonda/rails,rafaelfranca/omg-rails,yalab/rails,MSP-Greg/rails,yawboakye/rails,eileencodes/rails,iainbeeston/rails,repinel/rails,starknx/rails,Erol/rails,kmcphillips/rails,tgxworld/rails,Stellenticket/rails,Stellenticket/rails,mechanicles/rails,joonyou/rails,joonyou/rails,schuetzm/rails,Envek/rails,prathamesh-sonpatki/rails,iainbeeston/rails,fabianoleittes/rails,notapatch/rails,kddeisz/rails,Stellenticket/rails,rafaelfranca/omg-rails,gauravtiwari/rails,tjschuck/rails,georgeclaghorn/rails,gauravtiwari/rails,yawboakye/rails,kmcphillips/rails,georgeclaghorn/rails,vipulnsward/rails,yawboakye/rails,shioyama/rails,tgxworld/rails,Vasfed/rails,vipulnsward/rails,rafaelfranca/omg-rails,betesh/rails,notapatch/rails,BlakeWilliams/rails,Edouard-chin/rails,starknx/rails,Erol/rails,tgxworld/rails,yhirano55/rails,Vasfed/rails,rails/rails,betesh/rails,lcreid/rails,yalab/rails,joonyou/rails,kmcphillips/rails,bogdanvlviv/rails,georgeclaghorn/rails,lcreid/rails,EmmaB/rails-1,Vasfed/rails,MSP-Greg/rails,mechanicles/rails,kddeisz/rails,prathamesh-sonpatki/rails,fabianoleittes/rails,yawboakye/rails,yahonda/rails,schuetzm/rails,prathamesh-sonpatki/rails,shioyama/rails,palkan/rails,palkan/rails,bogdanvlviv/rails,esparta/rails,repinel/rails,rails/rails,Edouard-chin/rails,bogdanvlviv/rails