code
stringlengths
2
1.05M
const test = require('../../'); test.beforeEach(fail); test(pass); function pass(t) { t.end(); } function fail(t) { t.fail(); t.end(); }
var should = require('should'); var ipt_new = require('../../../lib/iptables').new; var deleteChain = require('../../../lib/iptables').deleteChain; module.exports = function () { describe('#new', function () { it('should be defined', function () { should.exist(ipt_new); }); it('should throw an er...
(function (angular) { 'use strict'; angular.module('StructureModule') .controller('ListStructureController', ['$scope', '$location', 'moment', '$http', 'toastr', "$rootScope", '$state', 'Structures', '$window', function ($scope, $location, moment, $http, toastr, vAccordion, $state, Structure...
import { buffer, sampleFn } from './Util'; import * as Arc from './geometry/Arc'; import * as Path from './geometry/Path'; import * as Point from './geometry/Point'; import * as MouseTelemetrics from './io/MouseTelemetrics'; // import * as MouseWheel from './io/MouseWheel'; // import * as VirtualScroll from './io/V...
define(function (require) { var _ = require("underscore"), BaseView = require("baseView"), TrackEditorTemplateString = require("text!templates/trackEditor/trackEditor.html"), SequenceProgressView = require("./views/sequenceProgressView"), GridView = require("./views/gridView"), InstrumentPanel...
var os = require('os') var fs = require('fs') var im = require('imagemagick') var path = require('path') var async = require('async') var imgMeta = require('./image-meta') var pxToGeo = require('./px-to-geo') var geoCoords = require('./geo-coords...
mySyncSuite = { name: 'mySyncSuite', testSyncTest: function(test){ test.isTrue(true); } }; Munit.run(mySyncSuite); myAsyncSuite = { name: 'myAsyncSuite', testAsyncTest: function(test, waitFor){ var onTimeout = function(){ test.isTrue(true); }; Meteor.setTimeout(w...
version https://git-lfs.github.com/spec/v1 oid sha256:bcdb15d55babb534c630cbc242a81c8e94982b6bd3ccb14a7c486b8ef4ca548e size 173319
/** * Sample VIEW script. * * @author Stagejs.CLI * @created Wed May 17 2017 18:16:07 GMT-0700 (PDT) */ ;(function(app){ app.view('Layout', { template: '@view/ide/layout.html', //[editors]: {...}, coop: [ 'point-layout-reset-confirmed', //user confirm to delete a line attaches to a certain point 'de...
var http = require("http"); var url = require("url"); function start(route, handle) { function onRequest(request, response) { var pathname = url.parse(request.url).pathname; console.log("Request for " + pathname + " received."); route(handle, pathname, response, request); } //http...
(function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);var f=new Error("Cannot find module '"+o+"'");throw f.code="MODULE_NOT_FOUND",f}var l=n[o]={exports:{}};t[o][0].call(l.exports,function(e){var n=t[o][1][e];return s(n?n:e)},l,l.ex...
function Preview(color) { this.color = color; this.nextTile = document.getElementById('next'); this.nextTile.className = 'tile ' + this.currentColor; } Preview.prototype.render = function() { this.nextTile.className = 'tile ' + this.color; };
var should = require('should'); var assert = require('assert'); var mockSocket = require('./lib/mock_socket'); var Producer = require('../index').Producer; var Message = require('../index').Message; var ProduceRequest = require('../index').ProduceRequest; var BufferMaker = require('buffermaker'); var binary = require('...
/** * 本地缓存 类 */ export default class LocalStorage { constructor() { } /** * 默认获取是否支持本地缓存 * @returns {Storage} */ static getLocalStorage() { if (!localStorage) { throw new Error('Need localStorage'); } return localStorage; } /** * 添加本地缓存...
module.exports = /******/ (function(modules) { // webpackBootstrap /******/ // The module cache /******/ var installedModules = {}; /******/ // The require function /******/ function __webpack_require__(moduleId) { /******/ // Check if module is in cache /******/ if(installedModules[moduleId]) /******/ ret...
import GraphQL from 'graphql'; import { Node } from './node.js'; import { Entity } from './entity.js'; import { Duration, ISRC } from './scalars.js'; import { id, mbid, title, disambiguation, connectionWithExtras, linkedQuery, } from './helpers.js'; import { aliases } from './alias.js'; import { artists } f...
var DOCUMENTATION_OPTIONS = { URL_ROOT: document.getElementById("documentation_options").getAttribute('data-url_root'), VERSION: '1.0.0', LANGUAGE: 'None', COLLAPSE_INDEX: false, FILE_SUFFIX: '.html', HAS_SOURCE: true, SOURCELINK_SUFFIX: '.txt', NAVIGATION_WITH_KEYS: false, };
import React, { useState } from 'react'; import { Link, useRouteMatch, useHistory } from 'react-router-dom'; import AppBar from '@material-ui/core/AppBar'; import Toolbar from '@material-ui/core/Toolbar'; import Typography from '@material-ui/core/Typography'; import Button from '@material-ui/core/Button'; import IconB...
var Klout = require("node_klout"), klout = new Klout(process.env.KLOUT_APIV2_KEY); var initUser = function(username, callback){ klout.getKloutIdentity(username, function(error, user) { if(error){ callback(error, null); }else{ callback(null, user.id); } }); } ...
import {List, Map, fromJS } from 'immutable'; import max from 'lodash/math/max'; import min from 'lodash/math/min'; import Paper from '../records/paper'; export const CREATE = 'Gecko/paper/CREATE'; export const FETCH = 'Gecko/paper/FETCH'; export const SELECT = 'Gecko/paper/SELECT'; export const CREATE_CARD = 'Gecko/...
/* * Rejewski * * Copyright 2014 Jason Gerfen * All rights reserved. * * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. ...
import React, { Component, PropTypes } from 'react'; import MessageListItem from './MessageListItem'; import * as actions from '../actions/actions'; import { Modal, DropdownButton, MenuItem, Button } from 'react-bootstrap'; const activeChannel='Lobby'; import io from 'socket.io-client'; import { bindActionCreators } f...
export user from './auth' export todoList from './database'
Demo.LongProcessDialog = function DemoLongProcessDialog( config ) { Demo.LongProcessDialog.super.call( this, config ); }; OO.inheritClass( Demo.LongProcessDialog, OO.ui.ProcessDialog ); Demo.LongProcessDialog.static.title = 'Process dialog'; Demo.LongProcessDialog.static.actions = [ { action: 'save', label: 'Done', i...
'use strict'; const mockgoose = require('mockgoose'); const mongoose = require('mongoose'); mockgoose(mongoose, {port: 6666}); const co = require('co'); const _ = require('lodash'); const sinon = require('sinon'); const assert = require('assert'); const XeConsumer = require('../../worker/consumers/xe_consumer'); const ...
/** * mock.js 提供应用截获ajax请求,为脱离后台测试使用 * 模拟查询更改内存中mockData,并返回数据 */ import { fetch } from 'mk-utils' const mockData = fetch.mockData function initMockData() { if (!mockData.home) { mockData.home = {} } if(!mockData.home.messages){ mockData.home.messages = [] for (let i = 0; i < ...
/** * @author alteredq / http://alteredqualia.com/ */ THREE.MD2CharacterComplex = function () { var scope = this; this.scale = 1; // animation parameters this.animationFPS = 6; this.transitionFrames = 15; // movement model parameters this.maxSpeed = 275; this.maxReverseSpeed = -275; this.frontAcceler...
/* * gulp-po2json-angular-translate * https://github.com/rocwong/gulp-po2json-angular-translate * * based on grunt-po2json-angular-translate v0.0.3 * https://github.com/angular-translate/grunt-po2json-angular-translate * * Copyright (c) 2015 rocwong * Licensed under the MIT license. */ 'use strict'; var thro...
import React from 'react' const ForeverPage = () => <p>This page was rendered for a while!</p> ForeverPage.getInitialProps = async () => { await new Promise(resolve => { setTimeout(resolve, 3000) }) return {} } export default ForeverPage
/** * Author: froncheek * Date: 7/8/12 * Time: 4:49 PM * To change this template use File | Settings | File Templates. **/ // {js:leya} (function(undefined) { var CONST = { complete: 'complete' }; var win = window, doc = document, loc = location, nav = navigator, ua = nav.userAgent, ly = ...
'use strict'; angular.module("ngLocale", [], ["$provide", function ($provide) { var PLURAL_CATEGORY = {ZERO: "zero", ONE: "one", TWO: "two", FEW: "few", MANY: "many", OTHER: "other"}; function getDecimals(n) { n = n + ''; var i = n.indexOf('.'); return (i == -1) ? 0 : n.length - i - 1; } function ...
/** * @title WET-BOEW Events Calendar * @overview Dynamically generates a calendar interface for navigating a list of events. * @license wet-boew.github.io/wet-boew/License-en.html / wet-boew.github.io/wet-boew/Licence-fr.html * @author WET Community */ (function( $, window, wb ) { "use strict"; /* * Variable an...
var path = require('path'); var express = require('express'); var app = express(); app.set('port', process.env.PORT || 5000); app.use(express.static(path.join(__dirname, 'public'))); app.listen(app.get('port'), function() { console.log('Server listening on port', app.get('port')); });
/* * To change this license header, choose License Headers in Project Properties. * To change this template file, choose Tools | Templates * and open the template in the editor. */ $(document).ready(function() { $('#bEliminar').click(function() { $('#dEliminarConfirmar').dialog('open'); }); $(...
$(function () { var loaded = false; var sid = $('#vulnerability-container').data('scan'); fetch_analytics(); function fetch_analytics() { if (sid == undefined) { return; } $.ajax({ url: '/scan/' + sid + '/vulnerabilities/chart', method: 'GET', success: function(data) { ...
import React from 'react'; import { shallow } from 'enzyme'; import Dialog, { DialogActions, } from 'material-ui/Dialog'; import IconButton from 'material-ui/IconButton'; import CategoryDeleter from './CategoryDeleter.js'; const setup = propOverrides => { const props = Object.assign({ url: "path/to/resource"...
var async = require('async') var GitHub = require('github') exports.child_process = require('child_process') var parseRange = function(lines, done) { var matches = lines.first().match(/^(@@.+@@\s?)(.+)?/) lines[0] = matches[2] || null //lines = lines.compact() var scopes = matches[1].match(/^@@\s\-(\d+),(\d+...
function getArticleGenerator(arts) { return function() { if (arts.length === 0) { return; } let article = $("<article>"); article.append($(`<p>${arts.shift()}</p>`)) $("#content").append(article); } }
/* * Copyright (c) 2015-2016 Chukong Technologies Inc. * * 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, mod...
version https://git-lfs.github.com/spec/v1 oid sha256:bed48975c30bba7aa601e45077459d8262e0ea8612c89e57efd0461007cc0862 size 703916
require('babel-register'); require('./JoiModel');
const split = (separator, str) => str.split(separator); export { split };
/** * Rangy, a cross-browser JavaScript range and selection library * http://code.google.com/p/rangy/ * * Copyright 2013, Tim Down * Licensed under the MIT license. * Version: 1.3alpha.799 * Build date: 27 November 2013 */ (function(global) { var amdSupported = (typeof global.define == "function...
import toDate from '../toDate/index.js' /** * @name isBefore * @category Common Helpers * @summary Is the first date before the second one? * * @description * Is the first date before the second one? * * @param {Date|String|Number} date - the date that should be before the other one to return true * @param {D...
var fs = require('fs'); var path = require('path'); var jsdom = require('jsdom').jsdom; var sinon = global.sinon = require('sinon'); require("sinon/lib/sinon/util/event"); require("sinon/lib/sinon/util/fake_xml_http_request"); module.exports = fakedom; /** * Options * Callback */ function fakedom(options, onI...
import Modifier from 'ember-class-based-modifier'; import { getOwner } from '@ember/application'; export default class RecognizeGestureModifier extends Modifier { constructor() { super(...arguments); this.recognizers = null; this.manager = null; this.gestures = getOwner(this).look...
// sends an SMS with the name of a friend and the friend's phone number to another number authorized to receive SMS's var twilioSID = process.env.TWILIO_ACCOUNT_SID; var twilioAuthToken = process.env.TWILIO_AUTH_TOKEN; var Promise = require('bluebird'); var sendMessage = Promise.promisify(require('twilio')(twilioSID,...
import TwilioVideo from "TwilioVideo" import 'react-native'; import React from 'react'; import Index from '../index.ios.js'; // Note: test renderer must be required after react-native. import renderer from 'react-test-renderer'; it('renders correctly', () => { const tree = renderer.create( <TwilioVideo /> );...
(function (Controllers, undefined) { Controllers.GeneralCtrl = ['$scope', '$routeParams', '$location', '$http', 'generalFactory', function ($scope, $routeParams, $location, $http, generalFactory) { var scope = $scope; scope.location = $location; scope.routeParams = $routeParams; scope.mainNav = []; ...
'use strict'; /** * Module dependencies. */ var config = require('../config'), express = require('express'), morgan = require('morgan'), bodyParser = require('body-parser'), session = require('express-session'), MongoStore = require('connect-mongo')(session), multer = require('multer'), favicon = requi...
/* ========================================================= * bootstrap-datepicker.js * http://www.eyecon.ro/bootstrap-datepicker * ========================================================= * Copyright 2012 Stefan Petre * Improvements by Andrew Rowls * * Licensed under the Apache License, Version 2.0 (the "Lice...
import {addBeforeInterceptor} from '../../utils/state/confluxes' export function Before() { let actionTypes = [...arguments] return (managerPrototype, methodName, methodDescriptor) => { let beforeInterceptor = managerPrototype[methodName] actionTypes.forEach(actionType => addBeforeInterceptor(managerPro...
const path = require('path') const webpack = require('webpack') const ExtractTextPlugin = require('extract-text-webpack-plugin') const HtmlWebpackPlugin = require('html-webpack-plugin'); const extractSass = new ExtractTextPlugin({ filename: "[name].[contenthash].css", disable: process.env.NODE_ENV === "dev" });...
exports.version="6.17.1"
/** * test-asyncbuilder * Copyright (c) 2015-2022 Jürgen Leschner - github.com/jldec - MIT license * **/ /*eslint no-unused-vars: ["error", { "args": "none" }]*/ var test = require('tape'); var partial = require('lodash.partial'); var builder = require('../asyncbuilder'); test('instanceof', function(t) { t.tru...
if (!String.prototype.format) { String.prototype.format = function () { var args = arguments; return this.replace(/{(\d+)}/g, function (match, number) { return (typeof args[number] != 'undefined' ? args[number] : match); }); }; } var map; var locations; var baseUrl; var t...
const fs = require('fs'); const util = require('util'); // First 40 bytes are RIFF header const WAVEHEADERSIZE = 40; // Header tags to be parsed const WAVETAGS = [ ['id', 'string', 4, true], ['idSize', 'uinteger', 4, true], ['formatTag', 'string', 4, true], ['fmtId', 'string', 4, true], ['fmtIdSiz...
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); function stringify(arg) { if (typeof arg === "string") return arg; return JSON.stringify(arg); } exports.stringify = stringify; function log(message) { var optionalParams = []; for (var _i = 1; _i < arguments.length; _i...
module.exports = function(ngModule) { /********** <ohs-blogpost-callout config="::{ slug: 'make-adverts-interactive', message: 'Well worth the read next' }"> </ohs-blogpost-callout> **********/ require('./ohs-blogpost-callout.less'); const angular = require('angular'); ...
/* A component that renders one or more columns of vertical time slots ----------------------------------------------------------------------------------------------------------------------*/ var TimeGrid = Grid.extend({ slotDuration: null, // duration of a "slot", a distinct time segment on given day, visualized ...
var config = require('../config'); /*var rdb = config.rdb; var rdbLogger = config.rdbLogger; var io = config.io;*/ var sessionSingleton = require('../singleton').SessionSingleton.getInstance(); var sessionExpiration = config.sessionExpiration; var logger = require('../logger'); var sendMail = require('../email').sendM...
var async = require('async'); var fs = require('fs'); var restler = require('restler'); var zip = require('./routes/util/zip'); var path = require('path'); require('colors'); function uploadtgz(zippath, options, done){ console.log("uploadtgz".cyan,zippath); fs.stat(zippath, function(err, stats){ if(err){retur...
import { t as _t } from "marko/src/runtime/vdom/index.js"; const _marko_componentType = "packages/translator-default/test/fixtures/tag-with-default-attr/template.marko", _marko_template = _t(_marko_componentType); export default _marko_template; import _marko_renderer from "marko/src/runtime/components/renderer...
define([], function(){ function MainFunctions() {}; MainFunctions.prototype.render = function() { var viewsWithPrepareRender = ['productVariation', 'renderReminderConfirm', 'renderReminder']; this.view = new this.view({el: this.el, product: this.product, account: this.account, controlle...
var spicomm_8h = [ [ "SPI_RECVQUEUE_SIZE", "group__SPI.html#ga6177ab4ab1e1790508797c4987003b3c", null ], [ "SPI_SENDQUEUE_SIZE", "group__SPI.html#ga046708bf8b10b373fc94bf9b92b45649", null ], [ "spiDebug", "group__SPI.html#gaa1915f59d12c36b3c1955a05186d46c6", null ], [ "spiQueueInit", "group__SPI.html#ga...
var Backbone = require('backbone'); var BotModel = Backbone.Model.extend({ idAttribute: 'bot_id' }); module.exports = BotModel;
// # **PertDetailView** // A Backbone.View that shows information about a small molecule compound or gene. This view is // frequently paired with a PertDetailModel. // pert_detail_view = new PertDetailView({el: $("target_selector")}); // optional arguments: // 1. {string} **bg\_color** the hex color code to us...
(function(angular) { 'use strict'; angular.module('gymApp.directives') .directive('membershipList', function() { return { restrict: 'A', scope: { memberInfo: '=info' }, link: function(scope, element, attrs) { // cool way to get some data....
import expect from 'expect'; import { Mongo } from 'meteor/mongo'; import SimpleSchema from 'simpl-schema'; const productSchema = new SimpleSchema({ _id: { type: String, optional: true }, title: { type: String, defaultValue: "" }, type: { label: "Product Type", type: String, defau...
'use strict'; angular.module('themeGreen').controller('HomeController', ['$scope', 'Authentication', function($scope, Authentication) { // This provides Authentication context. $scope.authentication = Authentication; } ]);
import React, { PropTypes as T } from 'react'; import classnames from 'classnames'; import Map, { Marker } from 'google-maps-react'; import styles from './styles.module.css'; export class MapComponent extends React.Component { renderChildren() { const {children} = this.props; } renderMarkers() { if (!this.prop...
import React from 'react'; import ReactDOM from 'react-dom'; import App from './components/App'; ReactDOM.render( <App />, document.getElementById( 'root' ) );
(function() { var clone = fabric.util.object.clone; fabric.util.object.extend(fabric.IText.prototype, /** @lends fabric.IText.prototype */ { /** * Initializes all the interactive behavior of IText */ initBehavior: function() { this.initKeyHandlers(); this.initCursorSelectionHandlers...
// Load the global common runtime for build/test/tools require('./etc/global-env') const gulp = require('gulp'), del = require('del'), // tsdoc = require('gulp-typedoc'), runSequence = require('run-sequence'), git = require('gulp-git'), ghRelease = require('gulp-github-release'), ts = require('gulp-typescrip...
//@flow import React from 'react' import type { TodoListProps } from '../definitions/TodoTypeDefinition.js' import { bindActionCreators } from 'redux' import { connect } from 'react-redux' import { onItemFilterOut, onItemSort } from '../actions/items' const TodoList = ({children, onItemFilterOut, onItemSort, sortType...
/* jshint expr: true */ /* globals before: false, describe: false, it: false */ 'use strict'; import {expect} from 'chai'; import * as jettison from '../src/jettison.js'; let StreamView = jettison._StreamView; class Approx { constructor(value, epsilon) { this.value = value; this.epsilon = epsilon; } } ...
import Ember from 'ember'; import DS from 'ember-data'; let roleUrlRegex = new RegExp('/roles/([a-zA-Z0-9\-]+)$'); function getRoleIdFromPermission(permission){ var roleUrl = permission.get('data.links.role'); return roleUrlRegex.exec(roleUrl)[1]; } export default DS.Model.extend({ // properties name: DS.att...
/** * Created by obzerg on 16/1/5. */ var should = require('should'); var Yhsd = require('../index'); describe('test/webhook.test.js', function () { var webHook; before(function () { webHook = new Yhsd.WebHook('fbc7f83524f14e358a325a5066acd741'); }); it('get webhook instance should be fail', ...
var started = false, callbacks = [], oldContents = null; request = require('request'), chokidar = require('chokidar'), processFunc = null, parser = require('./parser'); module.exports = function(logPath) { function invokeCallbacks() { processFunc(logPath, function(err, logs) { ...
/* Copyright (c) Microsoft Open Technologies, Inc. All Rights Reserved Apache License 2.0 Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless r...
//Router openNote.config(function($routeProvider){ $routeProvider .when("/folder/:id?", { controller: "folderController", templateUrl: "openNote/partials/folderPartial.html", }) .when("/note/:id?", { controller: "noteCo...
var express = require('express'); var router = express.Router(); var Song = require('../models/song') var iph = require('./iph') //create new song router.post('/create/', function(req, res, next){ var song = new Song({ title: req.body.title, verses: req.body.verses, CCLI: req.body.CCLI, chorus: req.b...
/** * Command for mutating an update expression * Created by Martin Koster on 2/16/15. */ (function(module) { 'use strict'; var _ = require('lodash'), MutationOperator = require('./MutationOperator'), MutationUtils = require('../utils/MutationUtils'), updateOperatorReplacements = { ...
import { Mongo } from 'meteor/mongo'; import { CommentSchema } from './schema.js'; export const collectionName = 'comments'; const Comments = new Mongo.Collection(collectionName); Comments.attachSchema(CommentSchema); export { Comments };
var Backbone = require('backbone') var L = require('leaflet') var StopsResponseMapView = Backbone.View.extend({ initialize: function (options) { _.bindAll(this, 'mapViewChanged') this.options = options || {} this.markerLayer = new L.LayerGroup() this.options.map.addLayer(this.markerLayer) this....
const utils = require('./utils'); module.exports = handler => async (req, res) => { try { await handler(req, res); } catch (err) { return utils.sendJSONresponse(res, 401, err); } };
const path = require('path') const HtmlWebpackPlugin = require('html-webpack-plugin') const ExtractTextPlugin = require("extract-text-webpack-plugin"); const CopyWebpackPlugin = require('copy-webpack-plugin'); const merge = require('webpack-merge') const parts = require('./webpack.parts') const PATHS = { app: path....
var assert = require('assert'); var sinon = require('sinon'); var adventure = require('../'); describe('adventure', () => { before(() => { this.shop = adventure('test-adventure'); this.shop.add('test', () => { return {}}); }); describe('#add', () => { it('add new adventure', () => { assert.equ...
export App from './App/App'; export Chat from './Chat/Chat'; export Home from './Home/Home'; export Widgets from './Widgets/Widgets'; export Scrap from './Scrap/Scrap'; export About from './About/About'; export Login from './Login/Login'; export LoginSuccess from './LoginSuccess/LoginSuccess'; export Survey from './Sur...
<!-- 变量->表达式->语句->程序 --> <!-- 基本语法 --> 1.直接量 var number = 1; 这里1就是一个直接量。 直接量还可以是: 1.2 "字符串" true false null [] {name:'js'} ... 2.变量 var number = 1; number就是变量 相当于一个盒子, 名字叫number(标识符) 把直接量放进去(赋值)。 声明: var 变量名1,变量名2; 3.标识符 var number; 变量的名称,函数名,参数名,对象名称等; 必须以字母,下划线或$开头,组成上可以有数字 大小写敏感 4.关键字和保留字 关键字,保留字不能做标识符 5.语句 加分号,可以嵌套...
/*eslint es6:true */ /*global o_o, expect*/ describe('errors.test.js', function () { var expect = chai.expect; // XXX: don't know how to handle it, it.skip('should throw when no callback is specified', function (done) { o_o.run(function *() { throw new Error('zork'); }) }); it('breaks before first yie...
import { mount } from '@vue/test-utils' import Banner from '@/components/banner' describe('Banner', () => { let wrapper beforeEach(() => { wrapper = mount(Banner, { sync: true }) }) it('is a Vue instance', () => { expect(wrapper.isVueInstance()).toBeTruthy() }) it('has data properties', () => { ...
/// <reference path="../scripts/jquery-1.8.3.js" /> /// <reference path="../scripts/jquery.signalR-1.0.0.js" /> /*! ASP.NET SignalR Stock Ticker Sample */ // Crockford's supplant method (poor man's templating) if (!String.prototype.supplant) { String.prototype.supplant = function (o) { return this.re...
(function () { 'use strict'; angular.module('gAnalytics').controller('HomeController', HomeController); /** @ngInject */ function HomeController(CONFIG, CONFIG_QUERIES, $http, configService) { var vm = this; vm.selectedProperty = CONFIG.selectedProperty; vm.navbar = {}; var configQueries = conf...
var gulp = require("gulp"); var webserver = require("gulp-webserver"); var mochaPhantomJS = require("gulp-mocha-phantomjs"); var browserify = require("browserify"); var source = require("vinyl-source-stream"); var jshint = require("gulp-jshint"); var stylish = require("jshint-stylish"); var header = require('gulp-heade...
(function(){var a={months:"1월_2월_3월_4월_5월_6월_7월_8월_9월_10월_11월_12월".split("_"),monthsShort:"1월_2월_3월_4월_5월_6월_7월_8월_9월_10월_11월_12월".split("_"),weekdays:"일요일_월요일_화요일_수요일_목요일_금요일_토요일".split("_"),weekdaysShort:"일_월_화_수_목_금_토".split("_"),longDateFormat:{LT:"A h시 mm분",L:"YYYY.MM.DD",LL:"YYYY년 MMMM D일",LLL:"YYYY년 MMMM D일 LT",...
'use strict'; let Fingdex = require('../'); module.exports = function indexByType (docIndex, type) { let index = new Fingdex(docIndex); index.ids = new Set(); index.through = function (entry) { // only update the index when a new doc is created and matches the type if (!entry.isNew) { return; } if (...
'use strict'; const _ = require('lodash'), chalk = require('chalk'), debugCreate = require('debug'), http = require('http'), rp = require('request-promise'), supportsColor = require('supports-color'), util = require('util'); const API_BASE_ROUTE = '/api/v4', ROUTE_PARAM_PATTERN = /:([^/:]+)/g; const debug = d...
var execFile = require('child_process').execFile, expect = require("chai").expect, path = require('path'); describe('Multiple questions', function() { it('What is your name ?', function(done) { var cp = execFile('node', [path.join(__dirname, './questions.command.js')], null), i ...
search_result['1019']=["topic_000000000000024F.html","SystemManagementController.ManageBadges Method",""];