Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pre release clean up #7

Merged
merged 7 commits into from Feb 3, 2017
Merged

Pre release clean up #7

merged 7 commits into from Feb 3, 2017

Conversation

gmq
Copy link
Member

@gmq gmq commented Feb 3, 2017

No description provided.

@gmq gmq requested a review from blackjid February 3, 2017 19:40
it('should format value', () => {
vm = new Vue({
template: '<div>{{superRut | rut}}</div>',
data: () => ({
Copy link

Choose a reason for hiding this comment

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

'arrow function syntax (=>)' is only available in ES6 (use 'esversion: 6').

Vue.filter('rut', rutFilter);
});

it('should format value', () => {
Copy link

Choose a reason for hiding this comment

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

'arrow function syntax (=>)' is only available in ES6 (use 'esversion: 6').


describe('Rut Filter', () => {
let vm;
beforeEach(() => {
Copy link

Choose a reason for hiding this comment

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

'arrow function syntax (=>)' is only available in ES6 (use 'esversion: 6').

});

describe('Rut Filter', () => {
let vm;
Copy link

Choose a reason for hiding this comment

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

'let' is available in ES6 (use 'esversion: 6') or Mozilla JS extensions (use moz).

});
});

describe('Rut Filter', () => {
Copy link

Choose a reason for hiding this comment

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

'arrow function syntax (=>)' is only available in ES6 (use 'esversion: 6').

template: '<div><input v-rut:live name="rut" type="text"></div>',
}).$mount();

const nativeInput = vm.$el.querySelector('input');
Copy link

Choose a reason for hiding this comment

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

'const' is available in ES6 (use 'esversion: 6') or Mozilla JS extensions (use moz).

expect(nativeInput.value).toBe('7.618.285-K');
});

it('should always format on blur even if in live mode', () => {
Copy link

Choose a reason for hiding this comment

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

'arrow function syntax (=>)' is only available in ES6 (use 'esversion: 6').

template: '<div><input v-rut:live name="rut" type="text"></div>',
}).$mount();

const nativeInput = vm.$el.querySelector('input');
Copy link

Choose a reason for hiding this comment

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

'const' is available in ES6 (use 'esversion: 6') or Mozilla JS extensions (use moz).

expect(nativeInput.value).toBe('7618285K');
});

it('should format on keyup if in live mode', () => {
Copy link

Choose a reason for hiding this comment

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

'arrow function syntax (=>)' is only available in ES6 (use 'esversion: 6').

template: '<div><input v-rut name="rut" type="text"></div>',
}).$mount();

const nativeInput = vm.$el.querySelector('input');
Copy link

Choose a reason for hiding this comment

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

'const' is available in ES6 (use 'esversion: 6') or Mozilla JS extensions (use moz).

@gmq
Copy link
Member Author

gmq commented Feb 3, 2017

Copy link
Member

@blackjid blackjid left a comment

Choose a reason for hiding this comment

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

Bakan!, lo mergeo....
te hice un mini comentario....

it('should format value', () => {
vm = new Vue({
template: '<div>{{superRut | rut}}</div>',
data: () => ({
Copy link
Member

Choose a reason for hiding this comment

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

aqui el data creo que tiene sentido usar las funciones cortas en vez de arrow funcion, porque dentro de la funcion en data creo que uno prefiere que el this sea la instancia de Vue

Yo se que en este caso no estas usando this, pero como por acostumbrarse...

vm = new Vue({
  template: '<div>{{superRut | rut}}</div>',
  data() {
    superRut: '7618285K',
  }),
  ...

Copy link
Member Author

Choose a reason for hiding this comment

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

Toda la razón, lo voy a actualizar.

it('should format value', () => {
vm = new Vue({
template: '<div>{{superRut | rut}}</div>',
data() {
Copy link

Choose a reason for hiding this comment

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

'concise methods' is available in ES6 (use 'esversion: 6') or Mozilla JS extensions (use moz).

template: '<div><input v-rut:live name="rut" type="text"></div>',
}).$mount();

const nativeInput = vm.$el.querySelector('input');
Copy link

Choose a reason for hiding this comment

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

'const' is available in ES6 (use 'esversion: 6') or Mozilla JS extensions (use moz).

template: '<div><input v-rut name="rut" type="text"></div>',
}).$mount();

const nativeInput = vm.$el.querySelector('input');
Copy link

Choose a reason for hiding this comment

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

'const' is available in ES6 (use 'esversion: 6') or Mozilla JS extensions (use moz).

@blackjid
Copy link
Member

blackjid commented Feb 3, 2017

aparte de que obedientemente lo cambiaste me encataria saber tu opinion... :)

@blackjid blackjid merged commit 198766e into master Feb 3, 2017
template: '<div><input v-rut:live name="rut" type="text"></div>',
}).$mount();

const nativeInput = vm.$el.querySelector('input');
Copy link

Choose a reason for hiding this comment

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

'const' is available in ES6 (use 'esversion: 6') or Mozilla JS extensions (use moz).

template: '<div><input v-rut name="rut" type="text"></div>',
}).$mount();

const nativeInput = vm.$el.querySelector('input');
Copy link

Choose a reason for hiding this comment

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

'const' is available in ES6 (use 'esversion: 6') or Mozilla JS extensions (use moz).

template: '<div><input v-rut:live name="rut" type="text"></div>',
}).$mount();

const nativeInput = vm.$el.querySelector('input');
Copy link

Choose a reason for hiding this comment

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

'const' is available in ES6 (use 'esversion: 6') or Mozilla JS extensions (use moz).

template: '<div><input v-rut name="rut" type="text"></div>',
}).$mount();

const nativeInput = vm.$el.querySelector('input');
Copy link

Choose a reason for hiding this comment

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

'const' is available in ES6 (use 'esversion: 6') or Mozilla JS extensions (use moz).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants