whimsical-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Sam Ruby <ru...@apache.org>
Subject [whimsy.git] [43/50] Commit 3536672: pull in jQuery for testing purposes
Date Fri, 22 Jan 2016 02:40:58 GMT
Commit 353667286ba17138de6f7afea0a7fcf66e03bd28:
    pull in jQuery for testing purposes


Branch: refs/heads/master
Author: Sam Ruby <rubys@intertwingly.net>
Committer: Sam Ruby <rubys@intertwingly.net>
Pusher: rubys <rubys@apache.org>

------------------------------------------------------------
spec/react_server.rb                                         | ++++ --
------------------------------------------------------------
6 changes: 4 additions, 2 deletions.
------------------------------------------------------------


diff --git a/spec/react_server.rb b/spec/react_server.rb
index b6ade88..557e8d1 100644
--- a/spec/react_server.rb
+++ b/spec/react_server.rb
@@ -61,8 +61,8 @@ def self.stop
 
   # the server itself
   @@server = proc do
-    React = require 'react'
-    ReactAddons = require 'react/addons'
+    React = require('react')
+    ReactAddons = require('react/addons')
     TestUtils = React.addons.TestUtils
     Simulate = TestUtils.Simulate
 
@@ -70,6 +70,8 @@ def self.stop
     global.document = jsdom('<html><body></body></html>')
     global.window = document.defaultView
 
+    jQuery = require('jquery')
+
     http = require('http')
     server = http.createServer do |request, response|
       data = ''

Mime
View raw message