Add missing javascript dependencies to package.json. Move javascripts files to app/javascript. Add first javascript test. Change test mode

This commit is contained in:
rebuilt 2021-10-15 23:47:12 +02:00
parent 414eb83f6d
commit 7ba020d04d
13 changed files with 83 additions and 54 deletions

13
app/javascript/cable.js Normal file
View file

@ -0,0 +1,13 @@
// Action Cable provides the framework to deal with WebSockets in Rails.
// You can generate new channels where WebSocket features live using the rails generate channel command.
//
//= require action_cable
//= require_self
//= require_tree ./channels
(function() {
this.App || (this.App = {});
App.cable = ActionCable.createConsumer();
}).call(this);