Skip to content
This repository has been archived by the owner on Jun 20, 2023. It is now read-only.

Fluent #353

Merged
merged 14 commits into from Mar 7, 2017
Merged

Fluent #353

merged 14 commits into from Mar 7, 2017

Conversation

aretecode
Copy link
Contributor

#336

πŸ—‘ remove old implementation in index
πŸ‘Ύ simplify
πŸ”πŸ–‡ add missing str includes any of util
🌊 convert to typescript
πŸ”¬ tests for all
πŸ“¦ import export Fluent in Arithmetics
✚ add support for nocache
✚ check for ^ & ~ in isArithmetic

Copy link
Contributor

@nchanged nchanged left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

All seems legit, Let's just move the tests to Fluent.test.ts

"isArithmetic should detect arithmetics properly"() {
const isArithmeticTrue = Fluent.isArithmetic('!^>[index.js] +[**/*.js] -path')
const isArithmeticFalse = Fluent.isArithmetic('eh...')
should(isArithmeticTrue).deepEqual(true)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

beTrue()

.finishBundle()
.finish()

should(typeof singleBundle).deepEqual('string')
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should(singleBundle).beString().equal("actual string should be here")

.finishBundle()
.finish()

should(typeof multipleBundles).deepEqual('object')
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

beObject().deepEqual(/* would be cool to have results here */)

let parsed = Arithmetic.parse(singleBundle);

should(parsed.str.includes('!'))
.deepEqual(true)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

beTrue()


const singleBundle = result.finish()

should(typeof singleBundle).deepEqual('string')
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

beString().equal("actual string")

public arithmetics: string;
public noDeps: boolean;

constructor(name, arithmetics) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

public arithmetics : string

this.cmds = []
this.str = ``
this.name = name
this.arithmetics = arithmetics
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

goes to contructor

πŸ‘Ύ shorter ts syntax for constructors
βœšπŸ”¬ add more thorough tests following the standard testing formula
πŸ“¦ export Fluent in index
@nchanged nchanged merged commit 462157f into fuse-box:master Mar 7, 2017
@nchanged nchanged added this to the 1.3.124 milestone Mar 8, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants