code
stringlengths
2
1.05M
import _ from 'lodash'; import setup from "../../../setup"; import {SELECT_COURT_CASE} from "../../../../src/client/store/actions/CourtCaseActions"; import reducer, {initialState} from "../../../../src/client/store/reducers/selectedCaseReducer"; describe("selectedCaseReducer", () => { const {expect, chance} = setu...
import smallText from './smallText'; export default {...smallText, marginLeft: '0.8em'};
/** * Linked List Cycle * * Given a linked list, determine if it has a cycle in it. * * Follow up: * Can you solve it without using extra space? */ /** * Definition for singly-linked list. * function ListNode(val) { * this.val = val; * this.next = null; * } */ /** * @param {ListNode} head * @re...
/** * Copyright (c) ActiveState 2013 - ALL RIGHTS RESERVED. */ if (typeof define !== 'function') { var define = require('amdefine')(module) } define([ './collection'], function (Collection) { var domains = function (api) { this.api = api; this.collection = 'domains'; ...
/*! * Angular Material Design * https://github.com/angular/material * @license MIT * v1.1.0-rc4-master-3e15998 */ goog.provide('ng.material.components.datepicker'); goog.require('ng.material.components.icon'); goog.require('ng.material.components.virtualRepeat'); goog.require('ng.material.core'); (function() { '...
'use strict' const qiniu = require('qiniu'); qiniu.conf.ACCESS_KEY = APP.qiniu.ACCESS_KEY qiniu.conf.SECRET_KEY = APP.qiniu.SECRET_KEY exports.uploadFileToken = async (ctx, next) => { let putPolicy = new qiniu.rs.PutPolicy(APP.qiniu.bucket) putPolicy.expires = APP.qiniu.signedUrlExpires let token = putPolicy.tok...
import jasmineEnzyme from 'jasmine-enzyme'; import { shallow } from 'enzyme'; import React from 'react'; import AddEditExerciseForm from '../AddEditExerciseForm'; describe('<AddEditExerciseForm />', () => { beforeEach(() => { jasmineEnzyme(); }); it('should exist', () => { const wrapper = shallow(<AddEd...
/*! * NETEYE Activity Indicator jQuery Plugin * * Copyright (c) 2010 NETEYE GmbH * Licensed under the MIT license * * Author: Felix Gnass [fgnass at neteye dot de] * Version: 1.0.0 */ /** * Plugin that renders a customisable activity indicator (spinner) using SVG or VML. */ (function($) { $...
import * as Parser from './parser' export function encode(object = {}) { return { siteId: object.siteId, songId: object.songId } } export function decode(object = {}) { return { id: `${object.siteId}.${object.songId}`, siteId: object.siteId, songId: object.songId, title: object.title, ...
var express = require("express"); var path = require("path"); var favicon = require("serve-favicon"); var logger = require("morgan"); var cookieParser = require("cookie-parser"); var bodyParser = require("body-parser"); var google = require("googleapis"); var routes = require("./routes/index"); var users = require("./...
import FactoryGuy from 'ember-data-factory-guy'; FactoryGuy.define('employee', { default: { name: FactoryGuy.belongsTo('name'), titles: ['Mr.', 'Dr.'], gender: 'Male', birthDate: new Date('2016-05-01') }, traits: { default_name_setup: { name: {} }, jon: { name: { f...
import * as actions from 'redux/actions' import _ from 'lodash' import * as utils from 'utils' export default async ( dispatch, institutionRegistration, onOpenSnackbar ) => { let body = _.cloneDeep(institutionRegistration) body.status = utils.constants.status.accepted body.updatedAt = Date.now() const re...
version https://git-lfs.github.com/spec/v1 oid sha256:273d6a60c54c3c08f32beeb6b7c5632dd438726c7ea7f24ae1c60fa098184175 size 6460
'use strict'; const chai = require('chai'), expect = chai.expect, Support = require(__dirname + '/../../support'), dialect = Support.getTestDialect(), _ = require('lodash'), QueryGenerator = require('../../../../lib/dialects/mysql/query-generator'); if (dialect === 'mysql') { describe('[MYSQL Specific] Qu...
var path = require('path'); module.exports = { context: path.resolve('src/'), entry: ['./index'], output: { path: path.resolve('dist/'), publicPath: '/public/assets/', filename: 'proxify.js', library: 'proxify' }, devServer: { contentBase: 'public', host: 'localhost', port: 8080 ...
/* =========================================================== * bootstrap-modal.js v2.2.5 * =========================================================== * Copyright 2012 Jordan Schroter * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the Li...
/* ======================================================================== * App.base64 v1.0 * base64转换插件 * ======================================================================== * Copyright 2016-2026 WangXin nvlbs,Inc. * * ======================================================================== */ (f...
var chai = require('chai'), expect = chai.expect, should = chai.should(), Circle = require('./../../../../../lib/ci/environments/circle').Circle describe('Circle', function() { describe('in', function() { it('should return true if relevant env variables are set', function() { if(!process.env.CIRC...
var a = { b: { } }; a.b.c = require('./bar'); exports.bar = a.b.c;
Reveal.addEventListener('ready', function () { QUnit.module('Markdown'); test('Options are set', function () { strictEqual(marked.defaults.smartypants, true); }); test('Smart quotes are activated', function () { var text = document.querySelector('.reveal .slides>section>p').textConten...
angular .module('arb.controllers', [ 'ui.router', 'arb.controllers.AppCtrl', 'arb.controllers.LoginCtrl', 'arb.controllers.NavbarCtrl' ]);
/** * Copyright (c) 2017-present, Facebook, Inc. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. * * @format */ 'use strict'; const fs = require('fs'); const path = require('path'); if (module.parent) { module.exports = testDepend...
version https://git-lfs.github.com/spec/v1 oid sha256:471f706893f6071559795a23dfcac236c3e4fae66c4c5e24c4e81d4c04a854ef size 3826
function changeTxt(txt) { document.getElementById("md2html").innerHTML = txt; } function saveButton() { var editor = ace.edit("editor-div"); editor.getSession().setMode("ace/mode/markdown"); editor.setTheme("ace/theme/twilight"); saveText(editor.getValue()); } function changeHtml() { var edito...
'use strict'; describe('ProAct.BufferedStream', function () { describe('#delay', function () { it ('fires all the buffered events', function () { var stream = new ProAct.Stream().delay(100), res = []; stream.on(function (el) { res.push(el); }); stream.trigger('a');...
watchn.watch('coffee', [libs, tests], function(options) { watchn.execute('make coffee', options, 'coffee', false, true) })
import { BodyComponent, suffixCssClasses } from 'mjml-core' import { flow, identity, join, filter } from 'lodash/fp' const makeBackgroundString = flow(filter(identity), join(' ')) export default class MjSection extends BodyComponent { static componentName = 'mj-section' static allowedAttributes = { 'backgrou...
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var rss = exports.rss = { "viewBox": "0 0 20 20", "children": [{ "name": "path", "attribs": { "d": "M2.4,2.4v2.367c7.086,0,12.83,5.746,12.83,12.832h2.369C17.599,9.205,10.794,2.4,2.4,2.4z M2.4,7.137v2.369\r\n\tc4.469,0,8.093,3.623,8.093,8.09...
(function() { tinymce.PluginManager.add('image_full_plugin', function( editor, url ) { editor.addButton('image_full_plugin', { text: 'Изображение во всю ширину', icon: 'image', onclick: function() { var image = ''; editor.windowManager.open...
/* * GET home page. */ exports.index = function(req, res){ res.render('index', { title: 'VBB Map' }); };
import diacritics from 'diacritics'; export async function getTrendsAsync() { let response = await fetch("https://tonicdev.io/ccheever/57c7f03b8d4e5c1600153b68/branches/master"); try { let trends = await response.json(); return trends; } catch (e) { throw new Error("Could not get trends from API. " ...
import React from 'react'; import { act } from 'react-dom/test-utils'; import { mounted } from '../setupTests'; import Timer from '../Timer'; beforeEach(() => jest.useFakeTimers()); test('timer', () => { let [component] = mounted(<Timer />); let timer = component.children(); expect(component.children().na...
#!/usr/bin/env node var amqp = require('amqplib/callback_api'); var args = process.argv.slice(2); if (args.length == 0) { console.log("Korzystanie: bezposredni-subskrybent-logow.js [info] [warning] [error]"); process.exit(1); } amqp.connect('amqp://localhost', function(err, conn) { conn.createChannel(function...
YUI.add("yuidoc-meta", function(Y) { Y.YUIDoc = { meta: { "classes": [ "Dataset", "Easing", "Yamori" ], "modules": [ "Yamori" ], "allModules": [ { "displayName": "Yamori", "name": "Yamori", "description": "yamori.js" ...
function KeyControls () { console.log('Key Controls'); } KeyControls.prototype.constructor = KeyControls; export default KeyControls;
import * as mixins from "~utils/mixins"; import * as styles from "gatsby-theme-docz/src/components/Header/styles"; import { lighten } from "@theme-ui/color"; export const wrapper = styles.wrapper; export const innerContainer = styles.innerContainer; export const menuIcon = styles.menuIcon; export const menuButton = st...
import request from 'superagent'; import Promise from 'promise'; import { GIPHY_SEARCH_API_KEY, GIPHY_UPLOAD_API_KEY } from '../config'; export const isGiphyUrl = (url) => { return url.search('giphy.com') !== -1; }; export const getStillFromUrl = (url) => { let a = url.split('.'); a.splice(a.leng...
import React from 'react'; import PropTypes from 'prop-types'; import { connect } from 'react-redux'; import Octicon from 'react-octicon'; import Clipboard from 'react-clipboard.js'; export const CopyUrl = props => ((props.constraint || {}).semver || (props.version || {}).semver) && ( <section className={`...
'use strict' let _ module.exports = class CSVConfig { constructor (config = {}) { this.config = config } get (path, config) { return config ? this.config[path] && this.config[path][config] : this.config[path] } set (path, config, value) { if (this.config[path] == null) { this.confi...
const iconv = require('iconv-lite'); const XMLDeclBeginnings = [ { encoding: 'utf8', // This is common for more encodings, all of them can be used to read the declaration buffer: Buffer.from([0x3C, 0x3F, 0x78, 0x6D]) }, { encoding: 'utf16le', buffer: Buffer.from([0x3C, 0x00, 0x3F, 0x00]) }, {...
var debug = require('debug')('crawler:main'); debug('welcome to zf');
/* * spa.shell.js * Shell module for SPA */ /*jslint browser : true, continue : true, devel : true, indent : 2, maxerr : 50, newcap : true, nomen : true, plusplus : true, regexp : true, sloppy : true, vars : false, white : true */ /*global $, spa */ spa.sh...
'use strict'; const { expect } = require('chai'); const { View, Property, Method } = require('..'); View.init(__dirname, 0, 0); const loop = () => { const timer = setInterval(View.update, 10); return () => clearInterval(timer); }; describe('Qml', function () { this.timeout(4000); let l; before(() => { l...
version https://git-lfs.github.com/spec/v1 oid sha256:d46bba17b272accbad7bfb4be8e3b20eb2e33ed28b0a7560558df4d9df2be1ad size 8904
const path = require('path'); const merge = require('webpack-merge'); const webpack = require('webpack'); const NpmInstallPlugin = require('npm-install-webpack-plugin'); const TARGET = process.env.npm_lifecycle_event; const PATHS = { app: path.join(__dirname, 'client'), build: path.join(__dirname, 'build') };...
define([],function(){ 'use strict'; var ctlr = ['$scope','SurveyService', function($scope, SurveyService){ SurveyService.query({page:'1', count:'10'},function(surveys){ $scope.surveys = surveys.surveys; }); }]; return ctlr; });
S_A_counter = 0;//counting number of changes S_B_interval= []; S_D_currentPos = 0; S_D_numSeconds = 0; function checkTextAtKeyPress(e) { var givenText = "S_D_1"; var typedText = "S_D_2"; var timerLog = "S_D_3"; var textToType = document.getElementById(givenText).value; //we reached the end, do nothing if(S_D_c...
var Chaff; (function (Chaff) { var Mock = (function () { function Mock(ConstructorFunction) { this.ConstructorFunction = ConstructorFunction; } Mock.prototype.With = function (mutator) { mutator(this.MakeSubject()); return this; }; ...
const round = (value, precision = 2) => { const multiplier = 10 ** (precision || 0); return Math.round(value * multiplier) / multiplier; }; export default round;
import React, {Component} from "react"; import {observer} from "mobx-react"; import {render, unmountComponentAtNode} from "react-dom"; import {observable} from "mobx"; import {Dropdown, Menu, Alert} from "antd"; import event from "~/utils/event"; @observer class Alerts extends Component { @observable alerts = []; ...
//Namespace management idea from http://enterprisejquery.com/2010/10/how-good-c-habits-can-encourage-bad-javascript-habits-part-1/ (function( cursorManager ) { //From: http://www.w3.org/TR/html-markup/syntax.html#syntax-elements var voidNodeTags = ['AREA', 'BASE', 'BR', 'COL', 'EMBED', 'HR', 'IMG', 'INPUT', 'K...
var consts = { }, lists = { '1': '#list-inbox', '2': '#list-urgent', '3': '#list-today' }; var Database = { addTODO: function() { } }; var TODO = { init: function() { $('.todo-input').keydown(this.add.bind(this)); }, add: function(e) { if($('.todo-input').val() && e.k...
const Config = require('./webpack.base.config') const Webpack = require('webpack') const WebpackDevServer = require('webpack-dev-server') const ExtractTextWebpackPlugin = require('extract-text-webpack-plugin') const Dashboard = require('webpack-dashboard') const DashboardPlugin = require('webpack-dashboard/plugin') con...
module.exports = ST; var Ship = require('./ship.js'); var Asteroid = require('./asteroid.js'); var Alien = require('./alien.js'); var Laser = require('./laser.js'); var Shield = require('./shield.js'); var Mine = require('./mine.js'); function ST (canvas, context, game) { this.canvas ...
'use strict'; var webtestDriver = require('../src/web-test-driver'); const RE_STR = '["]?([^\"]+)["]?'; // e.g. foo.bar, "foo.bar", or "foo bar" const RE_STR_WITH_QUOTE = '[\'"]?([\\s\\S]*)[\'"]?'; //e.g. 'foo bar', "foo bar" module.exports = { name: 'set element value', help: 'set element <selector> value "<stri...
define({main:{"sr-Cyrl-RS":{identity:{version:{_cldrVersion:"24",_number:"$Revision: 9061 $"},generation:{_date:"$Date: 2013-07-20 12:27:45 -0500 (Sat, 20 Jul 2013) $"},language:"root",script:"Cyrl",territory:"RS"},dates:{calendars:{gregorian:{months:{format:{abbreviated:{1:"јан",2:"феб",3:"мар",4:"апр",5:"мај",6:"јун"...
/*! * DevExtreme (dx.messages.cs.js) * Version: 20.2.9 (build 21293-1110) * Build date: Wed Oct 20 2021 * * Copyright (c) 2012 - 2021 Developer Express Inc. ALL RIGHTS RESERVED * Read about DevExtreme licensing here: https://js.devexpress.com/Licensing/ */ "use strict"; ! function(root, factory) { if ("function" ...
import {READ_BREWSESSION_STARTED, READ_BREWSESSION_SUCCEEDED, READ_BREWSESSION_FAILED, BREWSESSION_STARTSTOP_STARTED, BREWSESSION_STARTSTOP_SUCCEEDED, BREWSESSION_STARTSTOP_FAILED, READ_BREWSESSION_DATA_STARTED, READ_BREWSESSION_DATA_SUCCEEDED, READ_BREWSESSION_DATA_FAILED, UPDATE_BREWSESSIONSTA...
import React, { Component } from 'react'; import { browserHistory } from 'react-router'; import LoadingIcon from '../components/LoadingIcon'; class LoginRedirect extends Component { constructor(props) { super(props); } componentDidMount() { const loginRedirectUrl = localStorage.getItem('lo...
var renderer; $(function () { var dashStyles = [ 'Solid', 'ShortDash', 'ShortDot', 'ShortDashDot', 'ShortDashDotDot', 'Dot', 'Dash', 'LongDash', 'DashDot', 'LongDashDot', 'LongDashDotDot' ]; renderer = new Highcharts.Re...
(function() { var app = angular.module('dashboardController', ['dashboardService', 'dashboardFactory']); //creating new module /*create new controller; [] is a list of dependencies to fetch, and pass them all into a constructor function*/ app.controller('DashboardController', [ '$scope', 'DashboardService', 'Dash...
/** * @author Garrett Johnson / http://gkjohnson.github.io/ * https://github.com/gkjohnson/ply-exporter-js * * Usage: * var exporter = new THREE.PLYExporter(); * * // second argument is a list of options * exporter.parse(mesh, data => console.log(data), { binary: true, excludeAttributes: [ 'color' ] }); * ...
/** * Created by granted on 15.04.14. */ define( function () { "use strict"; var topic = { feed: {}, subscribe: function (message, callback) { if (!topic.feed[message]) { topic.feed[message] = []; } var id ...
define(['fraction'], function(Fraction) { describe("Fraction less than", function() { it("should compare two fractions", function() { var a = new Fraction(1, 4); var b = new Fraction(1, 2); expect(a.lt(b)) .toBe(true); expect(b.lt(a)) .toBe(false); }); it("should...
/*! * devextreme-angular * Version: 16.2.5 * Build date: Tue Feb 28 2017 * * Copyright (c) 2012 - 2017 Developer Express Inc. ALL RIGHTS RESERVED * * This software may be modified and distributed under the terms * of the MIT license. See the LICENSE file in the root of the project for details. * * https://git...
/** * Copyright (c) 2014 brian@bevey.org * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to * deal in the Software without restriction, including without limitation the * rights to use, copy, modify, merge, pu...
//This is title screen function //Basically game.TitleScreen = me.ScreenObject.extend({ /** * action to perform on state change */ onResetEvent: function () { me.game.world.addChild(new me.Sprite(0, 0, me.loader.getImage('title-screen')), -10); me.game.world.addChild(new (me.Render...
var reduction__base_8h = [ [ "intrusive_ptr_add_ref", "namespacehryky_1_1reduction.html#ab59dece4af8e91c10781e3b092c06d1b", null ], [ "intrusive_ptr_release", "namespacehryky_1_1reduction.html#ab54d3281488314c37ed3906b45c8f866", null ], [ "operator<<", "namespacestd.html#a8da2f2d5fa728f80513c463b31415f89", ...
var app = require('express')(), wizard = require('hmpo-form-wizard'), steps = require('./steps'), fields = require('./fields'); app.use(require('hmpo-template-mixins')(fields, { sharedTranslationKey: 'prototype' })); app.use(wizard(steps, fields, { controller: require('../../../controllers/form'), tem...
version https://git-lfs.github.com/spec/v1 oid sha256:2cd487fcdcaa1f3fbc0c07b3108e563a79a40af008f4973858abe26314de4160 size 2036
// flow-typed signature: 1b1ded04c0f4cac847f8e4e7bd14dc0a // flow-typed version: <<STUB>>/eslint-config-airbnb_v14.1.0/flow_v0.40.0 /** * This is an autogenerated libdef stub for: * * 'eslint-config-airbnb' * * Fill this stub out by replacing all the `any` types. * * Once filled out, we encourage you to share...
(function (window, undefined) { 'use strict'; // Copyright 2011, Google Inc. // All rights reserved. // // Redistribution and use in source and binary forms, with or without // modification, are permitted provided that the following conditions are // met: // // * Redistribut...
import expect from 'expect'; import { fromJS } from 'immutable'; import appMenuContainerReducer from '../reducer'; describe('appMenuContainerReducer', () => { it('returns the initial state', () => { expect(appMenuContainerReducer(undefined, {})).toEqual(fromJS({ menu: [], })); }); }...
'use strict' var assert = require('assert') var realFoo = require('./samples/foo') var stubs = { path: { extname: function () {}, basename: function () {} } } describe('api', function () { describe('default export', function () { var proxyquire = require('..') it('proxyquire can load', functio...
"use strict"; var helpers = require("../../helpers/helpers"); exports["US/Samoa"] = { "1911" : helpers.makeTestYear("US/Samoa", [ ["1911-01-01T11:22:47+00:00", "23:59:59", "LMT", 40968 / 60], ["1911-01-01T11:22:48+00:00", "23:52:48", "SAMT", 690] ]), "1950" : helpers.makeTestYear("US/Samoa", [ ["1950-01-01T...
var through = require('through2'); var gutil = require('gulp-util'); var read = require('read-file'); var PluginError = gutil.PluginError; const PLUGIN_NAME = 'gulp-append-prepend'; function filesGetContents(filepaths){ if (!(filepaths instanceof Array)) { filepaths = [filepaths]; } var filesCont...
var casper = require('casper').create(); casper.start('http://google.com'); casper.then(function () { this.clickLabel('தமிழ்', 'a'); }); casper.then(function () { this.capture('google-lucky.png', { top: 100, left: 100, width: 500, height: 400 }); }); casper.run();
var path = require('path') module.exports = { entry: './index.js', output: { path: path.resolve(__dirname, 'dist'), filename: 'index.js', libraryTarget: 'commonjs2' }, externals: [ /^animated_gif(\/.+)?$/, 'data-uri-to-blob', ], }
(function($, Drupal) { Drupal.behaviors.profilecmd = { attach: function(context, settings) { var base_path = Drupal.settings.basePath; $.getJSON(base_path + 'ReventlovGetProfile', function(data) { var selected = []; var dt = $...
/* * grunt-gaps * https://github.com/cwarden/grunt-gaps * * Copyright (c) 2015 Christian G. Warden * Licensed under the MIT license. */ 'use strict'; var tmp = require('temporary'); var gaps = require('node-google-apps-script'); var del = require('del'); var fs = require('fs-extra'); var _ = require('underscore...
/** * Point (on secp256k1) * ==================== * * A point is a point on the secp256k1 curve which is the elliptic curve used * by bitcoin. This code is a wrapper for Fedor Indutny's Point class from his * elliptic library. This code adds a few minor conveniences, but is mostly the * same. Since Fedor's code ...
var chai = require("chai"); var chaiAsPromised = require("chai-as-promised"); var sinon = require('sinon'); var sinonChai = require("sinon-chai"); var util = require('util'); var Q = require('q'); var Item = require('../models/item').Item; var ItemStates = require('../models/item').ItemStates; var ItemTypeIcons = requ...
import _ from 'lodash'; import QueryParameter from '../exception/QueryParameter'; /** * Cleans and defaults query parameter * * This will only consider attributes, sort and order * * @author Selcuk Kekec <skekec@kekecmed.com> * @param ctx * @param next */ export default async function (ctx, next) { // Che...
import mockServer from "./fixture-socket-server"; import mockContributionMonths from 'bitcentive/models/fixtures/contribution-months'; import mockOsProjects from 'bitcentive/models/fixtures/os-project'; import mockClientProjects from 'bitcentive/models/fixtures/client-project'; import mockContributor from 'bitcentive/m...
'use strict'; describe('Guestbook controllers', function() { beforeEach(module('guestBook')); beforeEach(module('guestBook.controllers')); beforeEach(module('guestBook.services')); describe('mainController', function() { var scope, ctrl, $httpBackend, postObj = {"from":"Author", "text":"Some ...
'use strict' const httpServer = require('http-server') let cache = 3600 if (process.env.NODE_ENV === 'production') { console.log('running in production mode(with caching)-make sure you have "Disable cache (while DevTools is open)" checked in the browser to see the changes while developing') } else { cache = -1 } c...
var minimatch = require("minimatch"); /** * Factory function for creating a matcher that works against an array of patterns. * Uses minimatch syntax. * * @param patterns Array of patterns to compare against * @returns {Function} Function will take a single string argument. * It will return true if the ar...
"use strict"; (function() { Dagaz.AI.PIECE_MASK = 0x1F; Dagaz.AI.TYPE_MASK = 0xF; Dagaz.AI.PLAYERS_MASK = 0x30; Dagaz.AI.COUNTER_SIZE = 3; Dagaz.AI.TYPE_SIZE = 4; Dagaz.AI.STALMATED = true; Dagaz.AI.colorBlack = 0x20; Dagaz.AI.colorWhite = 0x10; var pieceEmp...
/*! * # Semantic UI 2.1.8 - Popup * http://github.com/semantic-org/semantic-ui/ * * * Copyright 2015 Contributors * Released under the MIT license * http://opensource.org/licenses/MIT * */ ;(function ($, window, document, undefined) { "use strict"; $.fn.popup = function(parameters) { var $allModules ...
module.exports = (gulp, plugins, utilities) => { return () => gulp.src(utilities.paths.TEST_FILES, {read: false}) .pipe(plugins.mocha({ compilers: {js: plugins.babel}, require: ['./lib/jsdom'] // Prepare environement for React/JSX testing })).once('end', function () { ...
'use strict'; const assert = require('assert'); const RAND = require('../../../../src/sqlFunctions/basic/RAND'); const DataType = require('../../../../src/DataType'); describe('SQL function RAND()', () => { it('data type', () => { assert.strictEqual(RAND.dataType(), DataType.NUMBER); }); it('result', () => { ...
'use strict'; /** * Module dependencies. */ var _ = require('lodash'), mongoose = require('mongoose'), Schema = mongoose.Schema; /** * Schedule Day Schema */ var ScheduleDaySchema = new Schema({ day: { type: String, enum: ['Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday', 'Saturday', 'Sunday'],...
/// <reference path="typings/globals/dc.framework/index.d.ts" /> (function () { /** * 通用帮助类 */ function dcUtil() { this.isArray = function (object) { return object && typeof object === 'object' && Array == object.constructor; }; this.isUrl = functio...
var gulp = require("gulp"); var rename = require('gulp-rename'); var clean = require('gulp-clean'); var concat = require('gulp-concat'); var uglify = require('gulp-uglify'); var babel = require("gulp-babel"); gulp.task('clean', function () { return gulp.src(['src/**/*-compiled.js', 'test/**/*-compiled.js'], { read...
module.exports = { description: "", ns: "react-material-ui", type: "ReactNode", dependencies: { npm: { "material-ui/svg-icons/editor/insert-drive-file": require('material-ui/svg-icons/editor/insert-drive-file') } }, name: "EditorInsertDriveFile", ports: { input: {}, output: { c...
import { moduleFor, test } from 'ember-qunit'; moduleFor('service:firebase', 'Unit | Service | firebase', { // Specify the other units that are required for this test. // needs: ['service:foo'] }); // Replace this with your real tests. test('it exists', function(assert) { let service = this.subject(); assert....
/* * Copyright (c) 2015-2016 PointSource, LLC. * MIT Licensed * * Captures the image loading event and displays a spinner while the image loads */ (function() { 'use strict'; angular .module('app.directives') .directive('imageLoader', ImageLoaderDirective); ImageLoaderDirective.$...
// Sigma16: state.js // Copyright (c) 2019 John T. O'Donnell. john.t.odonnell9@gmail.com // License: GNU GPL Version 3 or later. Sigma16/ LICENSE.txt NOTICE.txt // This file is part of Sigma16. Sigma16 is free software: you can // redistribute it and/or modify it under the terms of the GNU General // Public License ...
import React from 'react' import { TagButton } from './index' import { VisaIcon } from 'kitten' import { DocsPage } from 'storybook/docs-page' export default { title: 'Action/TagButton', component: TagButton, parameters: { docs: { page: () => <DocsPage filepath={__filename} importString="TagButton" />,...
const chai = require('chai'); const chaiHttp = require('chai-http'); const cheerio = require('cheerio'); const nock = require('nock'); const constants = require('../../app/lib/constants'); const getSampleResponse = require('../resources/getSampleResponse'); const iExpect = require('../lib/expectations'); const postcod...