mirror of
https://github.com/harttle/liquidjs.git
synced 2026-10-03 09:05:14 -07:00
chore: fix linting
This commit is contained in:
@@ -17,6 +17,7 @@
|
|||||||
"no-var": 2,
|
"no-var": 2,
|
||||||
"prefer-const": 2,
|
"prefer-const": 2,
|
||||||
"no-unused-vars": "off",
|
"no-unused-vars": "off",
|
||||||
|
"import/export": "off",
|
||||||
"@typescript-eslint/no-unused-vars": ["error", { "vars": "all", "args": "after-used", "ignoreRestSiblings": false }]
|
"@typescript-eslint/no-unused-vars": ["error", { "vars": "all", "args": "after-used", "ignoreRestSiblings": false }]
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
+2
-2
@@ -6,7 +6,7 @@
|
|||||||
"types": "dist/liquid.d.ts",
|
"types": "dist/liquid.d.ts",
|
||||||
"browser": "dist/liquid.js",
|
"browser": "dist/liquid.js",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"lint": "eslint . --ext .ts --ext .js",
|
"lint": "eslint . --ext .ts",
|
||||||
"unit": "mocha 'test/unit/**/*.ts'",
|
"unit": "mocha 'test/unit/**/*.ts'",
|
||||||
"e2e": "npm run build && mocha 'test/e2e/**/*.ts'",
|
"e2e": "npm run build && mocha 'test/e2e/**/*.ts'",
|
||||||
"test": "npm run unit && npm run e2e",
|
"test": "npm run unit && npm run e2e",
|
||||||
@@ -62,7 +62,7 @@
|
|||||||
"eslint": "^5.12.1",
|
"eslint": "^5.12.1",
|
||||||
"eslint-config-standard": "^12.0.0",
|
"eslint-config-standard": "^12.0.0",
|
||||||
"eslint-plugin-import": "^2.15.0",
|
"eslint-plugin-import": "^2.15.0",
|
||||||
"eslint-plugin-mocha": "^5.2.1",
|
"eslint-plugin-mocha": "^5.3.0",
|
||||||
"eslint-plugin-node": "^8.0.1",
|
"eslint-plugin-node": "^8.0.1",
|
||||||
"eslint-plugin-promise": "^4.0.1",
|
"eslint-plugin-promise": "^4.0.1",
|
||||||
"eslint-plugin-standard": "^4.0.0",
|
"eslint-plugin-standard": "^4.0.0",
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
import FilterImpl from "src/template/filter/filter-impl";
|
import { FilterImpl } from 'src/template/filter/filter-impl'
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
'append': (v: string, arg: string) => v + arg,
|
'append': (v: string, arg: string) => v + arg,
|
||||||
|
|||||||
@@ -1,9 +1,9 @@
|
|||||||
import assert from 'src/util/assert'
|
import assert from 'src/util/assert'
|
||||||
import { identifier } from 'src/parser/lexical'
|
import { identifier } from 'src/parser/lexical'
|
||||||
import { AssignScope } from 'src/scope/scopes'
|
import { AssignScope } from 'src/scope/scopes'
|
||||||
import TagToken from 'src/parser/tag-token';
|
import TagToken from 'src/parser/tag-token'
|
||||||
import Scope from 'src/scope/scope';
|
import Scope from 'src/scope/scope'
|
||||||
import ITagImplOptions from 'src/template/tag/itag-impl-options';
|
import ITagImplOptions from 'src/template/tag/itag-impl-options'
|
||||||
|
|
||||||
const re = new RegExp(`(${identifier.source})\\s*=([^]*)`)
|
const re = new RegExp(`(${identifier.source})\\s*=([^]*)`)
|
||||||
|
|
||||||
|
|||||||
@@ -1,10 +1,10 @@
|
|||||||
import BlockMode from 'src/scope/block-mode'
|
import BlockMode from 'src/scope/block-mode'
|
||||||
import TagToken from 'src/parser/tag-token';
|
import TagToken from 'src/parser/tag-token'
|
||||||
import Token from 'src/parser/token';
|
import Token from 'src/parser/token'
|
||||||
import ITemplate from 'src/template/itemplate'
|
import ITemplate from 'src/template/itemplate'
|
||||||
import Scope from 'src/scope/scope';
|
import Scope from 'src/scope/scope'
|
||||||
import ITagImplOptions from 'src/template/tag/itag-impl-options';
|
import ITagImplOptions from 'src/template/tag/itag-impl-options'
|
||||||
import ParseStream from 'src/parser/parse-stream';
|
import ParseStream from 'src/parser/parse-stream'
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
parse: function (token: TagToken, remainTokens: Token[]) {
|
parse: function (token: TagToken, remainTokens: Token[]) {
|
||||||
|
|||||||
@@ -4,7 +4,7 @@ import { CaptureScope } from 'src/scope/scopes'
|
|||||||
import TagToken from 'src/parser/tag-token'
|
import TagToken from 'src/parser/tag-token'
|
||||||
import Token from 'src/parser/token'
|
import Token from 'src/parser/token'
|
||||||
import Scope from 'src/scope/scope'
|
import Scope from 'src/scope/scope'
|
||||||
import ITagImplOptions from 'src/template/tag/itag-impl-options';
|
import ITagImplOptions from 'src/template/tag/itag-impl-options'
|
||||||
|
|
||||||
const re = new RegExp(`(${identifier.source})`)
|
const re = new RegExp(`(${identifier.source})`)
|
||||||
|
|
||||||
|
|||||||
@@ -1,10 +1,10 @@
|
|||||||
import { evalExp } from 'src/render/syntax'
|
import { evalExp } from 'src/render/syntax'
|
||||||
import TagToken from 'src/parser/tag-token';
|
import TagToken from 'src/parser/tag-token'
|
||||||
import Token from 'src/parser/token';
|
import Token from 'src/parser/token'
|
||||||
import Scope from 'src/scope/scope';
|
import Scope from 'src/scope/scope'
|
||||||
import ITemplate from 'src/template/itemplate';
|
import ITemplate from 'src/template/itemplate'
|
||||||
import ITagImplOptions from 'src/template/tag/itag-impl-options';
|
import ITagImplOptions from 'src/template/tag/itag-impl-options'
|
||||||
import ParseStream from 'src/parser/parse-stream';
|
import ParseStream from 'src/parser/parse-stream'
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
parse: function (tagToken: TagToken, remainTokens: Token[]) {
|
parse: function (tagToken: TagToken, remainTokens: Token[]) {
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
import TagToken from "src/parser/tag-token";
|
import TagToken from 'src/parser/tag-token'
|
||||||
import Token from "src/parser/token";
|
import Token from 'src/parser/token'
|
||||||
import ITagImplOptions from "src/template/tag/itag-impl-options";
|
import ITagImplOptions from 'src/template/tag/itag-impl-options'
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
parse: function (tagToken: TagToken, remainTokens: Token[]) {
|
parse: function (tagToken: TagToken, remainTokens: Token[]) {
|
||||||
|
|||||||
@@ -1,9 +1,9 @@
|
|||||||
import assert from 'src/util/assert'
|
import assert from 'src/util/assert'
|
||||||
import { value as rValue } from 'src/parser/lexical'
|
import { value as rValue } from 'src/parser/lexical'
|
||||||
import { evalValue } from 'src/render/syntax'
|
import { evalValue } from 'src/render/syntax'
|
||||||
import TagToken from 'src/parser/tag-token';
|
import TagToken from 'src/parser/tag-token'
|
||||||
import Scope from 'src/scope/scope';
|
import Scope from 'src/scope/scope'
|
||||||
import ITagImplOptions from 'src/template/tag/itag-impl-options';
|
import ITagImplOptions from 'src/template/tag/itag-impl-options'
|
||||||
|
|
||||||
const groupRE = new RegExp(`^(?:(${rValue.source})\\s*:\\s*)?(.*)$`)
|
const groupRE = new RegExp(`^(?:(${rValue.source})\\s*:\\s*)?(.*)$`)
|
||||||
const candidatesRE = new RegExp(rValue.source, 'g')
|
const candidatesRE = new RegExp(rValue.source, 'g')
|
||||||
|
|||||||
@@ -3,7 +3,7 @@ import { identifier } from 'src/parser/lexical'
|
|||||||
import { CaptureScope, AssignScope, DecrementScope } from 'src/scope/scopes'
|
import { CaptureScope, AssignScope, DecrementScope } from 'src/scope/scopes'
|
||||||
import TagToken from 'src/parser/tag-token'
|
import TagToken from 'src/parser/tag-token'
|
||||||
import Scope from 'src/scope/scope'
|
import Scope from 'src/scope/scope'
|
||||||
import ITagImplOptions from 'src/template/tag/itag-impl-options';
|
import ITagImplOptions from 'src/template/tag/itag-impl-options'
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
parse: function (token: TagToken) {
|
parse: function (token: TagToken) {
|
||||||
|
|||||||
@@ -3,13 +3,13 @@ import { isString, isObject, isArray } from 'src/util/underscore'
|
|||||||
import { evalExp } from 'src/render/syntax'
|
import { evalExp } from 'src/render/syntax'
|
||||||
import assert from 'src/util/assert'
|
import assert from 'src/util/assert'
|
||||||
import { identifier, value, hash } from 'src/parser/lexical'
|
import { identifier, value, hash } from 'src/parser/lexical'
|
||||||
import TagToken from 'src/parser/tag-token';
|
import TagToken from 'src/parser/tag-token'
|
||||||
import Token from 'src/parser/token';
|
import Token from 'src/parser/token'
|
||||||
import Scope from 'src/scope/scope';
|
import Scope from 'src/scope/scope'
|
||||||
import Hash from 'src/template/tag/hash';
|
import Hash from 'src/template/tag/hash'
|
||||||
import ITemplate from 'src/template/itemplate';
|
import ITemplate from 'src/template/itemplate'
|
||||||
import ITagImplOptions from 'src/template/tag/itag-impl-options';
|
import ITagImplOptions from 'src/template/tag/itag-impl-options'
|
||||||
import ParseStream from 'src/parser/parse-stream';
|
import ParseStream from 'src/parser/parse-stream'
|
||||||
|
|
||||||
const re = new RegExp(`^(${identifier.source})\\s+in\\s+` +
|
const re = new RegExp(`^(${identifier.source})\\s+in\\s+` +
|
||||||
`(${value.source})` +
|
`(${value.source})` +
|
||||||
|
|||||||
@@ -1,10 +1,10 @@
|
|||||||
import { evalExp, isTruthy } from 'src/render/syntax'
|
import { evalExp, isTruthy } from 'src/render/syntax'
|
||||||
import TagToken from 'src/parser/tag-token';
|
import TagToken from 'src/parser/tag-token'
|
||||||
import Token from 'src/parser/token';
|
import Token from 'src/parser/token'
|
||||||
import Scope from 'src/scope/scope';
|
import Scope from 'src/scope/scope'
|
||||||
import ITemplate from 'src/template/itemplate';
|
import ITemplate from 'src/template/itemplate'
|
||||||
import ITagImplOptions from 'src/template/tag/itag-impl-options';
|
import ITagImplOptions from 'src/template/tag/itag-impl-options'
|
||||||
import ParseStream from 'src/parser/parse-stream';
|
import ParseStream from 'src/parser/parse-stream'
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
parse: function (tagToken: TagToken, remainTokens: Token[]) {
|
parse: function (tagToken: TagToken, remainTokens: Token[]) {
|
||||||
|
|||||||
@@ -2,10 +2,10 @@ import assert from 'src/util/assert'
|
|||||||
import { value, quotedLine } from 'src/parser/lexical'
|
import { value, quotedLine } from 'src/parser/lexical'
|
||||||
import { evalValue } from 'src/render/syntax'
|
import { evalValue } from 'src/render/syntax'
|
||||||
import BlockMode from 'src/scope/block-mode'
|
import BlockMode from 'src/scope/block-mode'
|
||||||
import TagToken from 'src/parser/tag-token';
|
import TagToken from 'src/parser/tag-token'
|
||||||
import Scope from 'src/scope/scope';
|
import Scope from 'src/scope/scope'
|
||||||
import Hash from 'src/template/tag/hash';
|
import Hash from 'src/template/tag/hash'
|
||||||
import ITagImplOptions from 'src/template/tag/itag-impl-options';
|
import ITagImplOptions from 'src/template/tag/itag-impl-options'
|
||||||
|
|
||||||
const staticFileRE = /[^\s,]+/
|
const staticFileRE = /[^\s,]+/
|
||||||
const withRE = new RegExp(`with\\s+(${value.source})`)
|
const withRE = new RegExp(`with\\s+(${value.source})`)
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
import assert from 'src/util/assert'
|
import assert from 'src/util/assert'
|
||||||
import { identifier } from 'src/parser/lexical'
|
import { identifier } from 'src/parser/lexical'
|
||||||
import { CaptureScope, AssignScope, IncrementScope } from 'src/scope/scopes'
|
import { CaptureScope, AssignScope, IncrementScope } from 'src/scope/scopes'
|
||||||
import ITagImplOptions from 'src/template/tag/itag-impl-options';
|
import ITagImplOptions from 'src/template/tag/itag-impl-options'
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
parse: function (token) {
|
parse: function (token) {
|
||||||
|
|||||||
@@ -2,11 +2,11 @@ import assert from 'src/util/assert'
|
|||||||
import { value as rValue } from 'src/parser/lexical'
|
import { value as rValue } from 'src/parser/lexical'
|
||||||
import { evalValue } from 'src/render/syntax'
|
import { evalValue } from 'src/render/syntax'
|
||||||
import BlockMode from 'src/scope/block-mode'
|
import BlockMode from 'src/scope/block-mode'
|
||||||
import TagToken from 'src/parser/tag-token';
|
import TagToken from 'src/parser/tag-token'
|
||||||
import Token from 'src/parser/token';
|
import Token from 'src/parser/token'
|
||||||
import Scope from 'src/scope/scope';
|
import Scope from 'src/scope/scope'
|
||||||
import Hash from 'src/template/tag/hash';
|
import Hash from 'src/template/tag/hash'
|
||||||
import ITagImplOptions from 'src/template/tag/itag-impl-options';
|
import ITagImplOptions from 'src/template/tag/itag-impl-options'
|
||||||
|
|
||||||
const staticFileRE = /\S+/
|
const staticFileRE = /\S+/
|
||||||
|
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
import TagToken from "src/parser/tag-token";
|
import TagToken from 'src/parser/tag-token'
|
||||||
import Token from "src/parser/token";
|
import Token from 'src/parser/token'
|
||||||
import ITagImplOptions from "src/template/tag/itag-impl-options";
|
import ITagImplOptions from 'src/template/tag/itag-impl-options'
|
||||||
|
|
||||||
export default <ITagImplOptions>{
|
export default <ITagImplOptions>{
|
||||||
parse: function (tagToken: TagToken, remainTokens: Token[]) {
|
parse: function (tagToken: TagToken, remainTokens: Token[]) {
|
||||||
|
|||||||
@@ -2,13 +2,13 @@ import { mapSeries } from 'src/util/promise'
|
|||||||
import assert from 'src/util/assert'
|
import assert from 'src/util/assert'
|
||||||
import { evalExp } from 'src/render/syntax'
|
import { evalExp } from 'src/render/syntax'
|
||||||
import { identifier, value, hash } from 'src/parser/lexical'
|
import { identifier, value, hash } from 'src/parser/lexical'
|
||||||
import TagToken from 'src/parser/tag-token';
|
import TagToken from 'src/parser/tag-token'
|
||||||
import Token from 'src/parser/token';
|
import Token from 'src/parser/token'
|
||||||
import ITemplate from 'src/template/itemplate';
|
import ITemplate from 'src/template/itemplate'
|
||||||
import Scope from 'src/scope/scope';
|
import Scope from 'src/scope/scope'
|
||||||
import Hash from 'src/template/tag/hash';
|
import Hash from 'src/template/tag/hash'
|
||||||
import ITagImplOptions from 'src/template/tag/itag-impl-options';
|
import ITagImplOptions from 'src/template/tag/itag-impl-options'
|
||||||
import ParseStream from 'src/parser/parse-stream';
|
import ParseStream from 'src/parser/parse-stream'
|
||||||
|
|
||||||
const re = new RegExp(`^(${identifier.source})\\s+in\\s+` +
|
const re = new RegExp(`^(${identifier.source})\\s+in\\s+` +
|
||||||
`(${value.source})` +
|
`(${value.source})` +
|
||||||
|
|||||||
@@ -1,10 +1,9 @@
|
|||||||
import { evalExp, isFalsy } from 'src/render/syntax'
|
import { evalExp, isFalsy } from 'src/render/syntax'
|
||||||
import TagToken from 'src/parser/tag-token';
|
import TagToken from 'src/parser/tag-token'
|
||||||
import Token from 'src/parser/token';
|
import Token from 'src/parser/token'
|
||||||
import ITemplate from 'src/template/itemplate';
|
import Scope from 'src/scope/scope'
|
||||||
import Scope from 'src/scope/scope';
|
import ITagImplOptions from 'src/template/tag/itag-impl-options'
|
||||||
import ITagImplOptions from 'src/template/tag/itag-impl-options';
|
import ParseStream from 'src/parser/parse-stream'
|
||||||
import ParseStream from 'src/parser/parse-stream';
|
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
parse: function (tagToken: TagToken, remainTokens: Token[]) {
|
parse: function (tagToken: TagToken, remainTokens: Token[]) {
|
||||||
|
|||||||
+1
-1
@@ -14,7 +14,7 @@ import { isTruthy, isFalsy, evalExp, evalValue } from './render/syntax'
|
|||||||
import builtinTags from './builtin/tags'
|
import builtinTags from './builtin/tags'
|
||||||
import builtinFilters from './builtin/filters'
|
import builtinFilters from './builtin/filters'
|
||||||
import { LiquidOptions, NormalizedFullOptions, applyDefault, normalize } from './liquid-options'
|
import { LiquidOptions, NormalizedFullOptions, applyDefault, normalize } from './liquid-options'
|
||||||
import FilterImpl from './template/filter/filter-impl';
|
import { FilterImpl } from './template/filter/filter-impl'
|
||||||
|
|
||||||
export default class Liquid {
|
export default class Liquid {
|
||||||
public options: NormalizedFullOptions
|
public options: NormalizedFullOptions
|
||||||
|
|||||||
@@ -6,7 +6,7 @@ export const quoteBalanced = new RegExp(`(?:${quoted.source}|[^'"])*`)
|
|||||||
|
|
||||||
// basic types
|
// basic types
|
||||||
export const integer = /-?\d+/
|
export const integer = /-?\d+/
|
||||||
export const number = /-?\d+\.?\d*|\.?\d+/
|
export const number = /[+-]?(?:\d+\.?\d*|\.?\d+)/
|
||||||
export const bool = /true|false/
|
export const bool = /true|false/
|
||||||
|
|
||||||
// property access
|
// property access
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
import Token from 'src/parser/token'
|
import Token from 'src/parser/token'
|
||||||
import ITemplate from 'src/template/itemplate'
|
import ITemplate from 'src/template/itemplate'
|
||||||
import TagToken from './tag-token';
|
import TagToken from './tag-token'
|
||||||
|
|
||||||
type ParseToken = ((token: Token, remainTokens: Array<Token>) => ITemplate)
|
type ParseToken = ((token: Token, remainTokens: Array<Token>) => ITemplate)
|
||||||
|
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
import { RenderBreakError, RenderError } from 'src/util/error'
|
import { RenderError } from 'src/util/error'
|
||||||
import assert from 'src/util/assert'
|
import assert from 'src/util/assert'
|
||||||
import Scope from 'src/scope/scope';
|
import Scope from 'src/scope/scope'
|
||||||
import ITemplate from 'src/template/itemplate';
|
import ITemplate from 'src/template/itemplate'
|
||||||
|
|
||||||
export default class Render {
|
export default class Render {
|
||||||
async renderTemplates (templates: ITemplate[], scope: Scope) {
|
async renderTemplates (templates: ITemplate[], scope: Scope) {
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
export default interface IContext {
|
export default interface IContext {
|
||||||
[key: string]: any;
|
[key: string]: any;
|
||||||
liquid_method_missing?: (key: string) => any;
|
liquid_method_missing?: (key: string) => any; // eslint-disable-line
|
||||||
}
|
}
|
||||||
+1
-1
@@ -4,7 +4,7 @@ import * as lexical from '../parser/lexical'
|
|||||||
import assert from '../util/assert'
|
import assert from '../util/assert'
|
||||||
import { NormalizedFullOptions, applyDefault } from '../liquid-options'
|
import { NormalizedFullOptions, applyDefault } from '../liquid-options'
|
||||||
import BlockMode from './block-mode'
|
import BlockMode from './block-mode'
|
||||||
import IContext from './icontext';
|
import IContext from './icontext'
|
||||||
|
|
||||||
export default class Scope {
|
export default class Scope {
|
||||||
opts: NormalizedFullOptions
|
opts: NormalizedFullOptions
|
||||||
|
|||||||
@@ -1,3 +1 @@
|
|||||||
type FilterImpl = (value: any, ...args: any[]) => any
|
export type FilterImpl = (value: any, ...args: any[]) => any
|
||||||
|
|
||||||
export default FilterImpl
|
|
||||||
|
|||||||
@@ -2,7 +2,7 @@ import assert from 'src/util/assert'
|
|||||||
import * as lexical from 'src/parser/lexical'
|
import * as lexical from 'src/parser/lexical'
|
||||||
import { evalValue } from 'src/render/syntax'
|
import { evalValue } from 'src/render/syntax'
|
||||||
import Scope from 'src/scope/scope'
|
import Scope from 'src/scope/scope'
|
||||||
import FilterImpl from './filter-impl'
|
import { FilterImpl } from './filter-impl'
|
||||||
|
|
||||||
const valueRE = new RegExp(`${lexical.value.source}`, 'g')
|
const valueRE = new RegExp(`${lexical.value.source}`, 'g')
|
||||||
|
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
import { hashCapture } from 'src/parser/lexical'
|
import { hashCapture } from 'src/parser/lexical'
|
||||||
import { evalValue } from 'src/render/syntax'
|
import { evalValue } from 'src/render/syntax'
|
||||||
import Scope from 'src/scope/scope';
|
import Scope from 'src/scope/scope'
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Key-Value Pairs Representing Tag Arguments
|
* Key-Value Pairs Representing Tag Arguments
|
||||||
|
|||||||
@@ -1,5 +1,4 @@
|
|||||||
import * as _ from './underscore'
|
import * as _ from './underscore'
|
||||||
import { __extends } from 'tslib'
|
|
||||||
import Token from 'src/parser/token'
|
import Token from 'src/parser/token'
|
||||||
import ITemplate from 'src/template/itemplate'
|
import ITemplate from 'src/template/itemplate'
|
||||||
|
|
||||||
|
|||||||
@@ -179,6 +179,6 @@ export default function (d: Date, format: string) {
|
|||||||
// Add the format code
|
// Add the format code
|
||||||
const ch = results[0].charAt(1)
|
const ch = results[0].charAt(1)
|
||||||
const func = formatCodes[ch]
|
const func = formatCodes[ch]
|
||||||
output += func ? func.call(null, d) : '%' + ch
|
output += func ? func(d) : '%' + ch
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
import Liquid from 'src/liquid'
|
import Liquid from 'src/liquid'
|
||||||
import { expect, use } from 'chai'
|
import { expect, use } from 'chai'
|
||||||
import * as chaiAsPromised from 'chai-as-promised'
|
import * as chaiAsPromised from 'chai-as-promised'
|
||||||
import IContext from 'src/scope/icontext';
|
import IContext from 'src/scope/icontext'
|
||||||
|
|
||||||
use(chaiAsPromised)
|
use(chaiAsPromised)
|
||||||
|
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
import * as chai from 'chai'
|
import * as chai from 'chai'
|
||||||
import Scope from 'src/scope/scope'
|
import Scope from 'src/scope/scope'
|
||||||
import IContext from 'src/scope/icontext';
|
import IContext from 'src/scope/icontext'
|
||||||
|
|
||||||
const expect = chai.expect
|
const expect = chai.expect
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user