This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
describe('toFixedWithoutRounding()', () => { | |
it('should return a string', () => { | |
const result = toFixedWithoutRounding(3271.24); | |
expect(typeof result).toBe('string'); | |
}); | |
it('should return expected numbers', () => { | |
expect(toFixedWithoutRounding(7933.2982426892, 1)).toBe('7933.2'); | |
expect(toFixedWithoutRounding(7933.2982426892, 2)).toBe('7933.29'); | |
expect(toFixedWithoutRounding(7933.2982426892, 3)).toBe('7933.298'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<template> | |
<h1>This is my comment</h1> | |
<p> | |
Current attachment type: <strong>{{ attachment.type }}</strong> | |
</p> | |
<button @click="() => (attachment.type = 'fake-type')">Invalid type</button> | |
<button @click="() => (attachment.type = 'Default')">Default</button> | |
<button @click="() => (attachment.type = 'Button')">Button</button> |
NewerOlder