mirror of
https://github.com/flynx/object.js.git
synced 2025-10-29 02:20:08 +00:00
bumped version + docs + notes...
Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
parent
1e5aa9fc50
commit
dce24493ff
@ -86,7 +86,7 @@ function(text, tab_size, leading_tabs){
|
||||
: leading_tabs)
|
||||
* tab_size
|
||||
// prepare text...
|
||||
var tab = ' '.repeat(tab_size)
|
||||
var tab = ' '.repeat(tab_size || 0)
|
||||
text = tab != '' ?
|
||||
text.replace(/\t/g, tab)
|
||||
: text
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "ig-object",
|
||||
"version": "5.2.6",
|
||||
"version": "5.2.7",
|
||||
"description": "",
|
||||
"main": "object.js",
|
||||
"scripts": {
|
||||
|
||||
6
test.js
6
test.js
@ -9,10 +9,8 @@
|
||||
* - sub-instance
|
||||
* - callable
|
||||
* - .call(..) and friends
|
||||
* - normalizeIndent(..)/normalizeTextIndent(..) -- tab_size values...
|
||||
* - object.mixout(..)
|
||||
* - object.normalizeTextIndent(..)
|
||||
* - object.doc`...`
|
||||
* - object.text`...`
|
||||
* - callback STOP in object.mixins(..)
|
||||
* - props arg in object.values(..)
|
||||
* - RawInstance(..).toString()
|
||||
@ -672,6 +670,7 @@ var cases = test.Cases({
|
||||
assert(xx.call(null), 'xx.call(null)')
|
||||
},
|
||||
|
||||
// XXX still need to test tab_size values (0, ...)
|
||||
text_cases: [
|
||||
// sanity checks...
|
||||
{ input: 'abc',
|
||||
@ -684,7 +683,6 @@ var cases = test.Cases({
|
||||
{ input: `a
|
||||
c`,
|
||||
text: 'a\nc',
|
||||
// XXX fail...
|
||||
doc: 'a\n c'},
|
||||
{ input: `a\nc`,
|
||||
text: 'a\nc',
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user