mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2024-12-26 09:42:46 +08:00
fix errors with polyfill
This commit is contained in:
parent
dccf4e34ff
commit
e5ebedb428
5 changed files with 6 additions and 11 deletions
|
@ -1,3 +1,4 @@
|
|||
import "babel-polyfill";
|
||||
import "intl";
|
||||
import "intl/locale-data/jsonp/en-US.js"
|
||||
import React from "react";
|
||||
|
|
|
@ -9,16 +9,9 @@ require 'capybara/cucumber'
|
|||
require 'capybara-webkit'
|
||||
require 'simplecov'
|
||||
require 'headless'
|
||||
require 'selenium-webdriver'
|
||||
|
||||
|
||||
Capybara.default_driver = :selenium
|
||||
if Capybara.current_driver == :selenium
|
||||
require 'headless'
|
||||
|
||||
headless = Headless.new
|
||||
headless.start
|
||||
end
|
||||
headless = Headless.new
|
||||
headless.start
|
||||
|
||||
Capybara::Webkit.configure do |config|
|
||||
# Enable debug mode. Prints a log of everything the driver is doing.
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
# newer version of cucumber-rails. Consider adding your own code to a new file
|
||||
# instead of editing this one. Cucumber will automatically load all features/**/*.rb
|
||||
# files.
|
||||
ENV["RAILS_ENV"] ||= 'test'
|
||||
|
||||
# Don't load anything when running the gems:* tasks
|
||||
unless ARGV.any? { |a| a =~ /^gems/ }
|
||||
|
||||
|
|
|
@ -43,6 +43,7 @@
|
|||
"babel-plugin-syntax-dynamic-import": "^6.18.0",
|
||||
"babel-plugin-transform-class-properties": "^6.24.1",
|
||||
"babel-plugin-transform-object-rest-spread": "^6.23.0",
|
||||
"babel-polyfill": "^6.26.0",
|
||||
"babel-preset-env": "^1.6.0",
|
||||
"babel-preset-es2015": "^6.24.1",
|
||||
"babel-preset-react": "^6.24.1",
|
||||
|
|
|
@ -800,7 +800,7 @@ babel-plugin-transform-strict-mode@^6.24.1:
|
|||
babel-runtime "^6.22.0"
|
||||
babel-types "^6.24.1"
|
||||
|
||||
babel-polyfill@^6.23.0:
|
||||
babel-polyfill@^6.23.0, babel-polyfill@^6.26.0:
|
||||
version "6.26.0"
|
||||
resolved "https://registry.yarnpkg.com/babel-polyfill/-/babel-polyfill-6.26.0.tgz#379937abc67d7895970adc621f284cd966cf2153"
|
||||
dependencies:
|
||||
|
|
Loading…
Reference in a new issue